Go to the documentation of this file.
35 : server_(port), script_thread_(), program_(program)
66 const uint8_t* data =
reinterpret_cast<const uint8_t*
>(
program_.c_str());
void sendProgram(const socket_t filedescriptor)
const std::string PROGRAM_REQUEST_
void messageCallback(const socket_t filedescriptor, char *buffer)
void start()
Start event handling.
void connectionCallback(const socket_t filedescriptor)
#define URCL_LOG_ERROR(...)
void disconnectionCallback(const socket_t filedescriptor)
#define URCL_LOG_DEBUG(...)
void setDisconnectCallback(std::function< void(const socket_t)> func)
This callback will be triggered on clients disconnecting from the server.
void setMessageCallback(std::function< void(const socket_t, char *, int)> func)
This callback will be triggered on messages received on the socket.
bool write(const socket_t fd, const uint8_t *buf, const size_t buf_len, size_t &written)
Writes to a client.
#define URCL_LOG_INFO(...)
void setConnectCallback(std::function< void(const socket_t)> func)
This callback will be triggered on clients connecting to the server.
ur_client_library
Author(s): Thomas Timm Andersen, Simon Rasmussen, Felix Exner, Lea Steffen, Tristan Schnell
autogenerated on Mon May 26 2025 02:35:58