46 size_t max_msg_size = std::numeric_limits<int16_t>::max();
47 if (msg.length() < max_msg_size)
std::string String
A String is simply a typedef to std::string.
virtual int response_ok()
Sends a a simple success response back to the client which is just the 4-byte error code Error::OK...
static CommBufPtr create_error_message(CommHeader &header, int error, const char *msg)
Creates a standard error message response.
Comm * m_comm
Comm pointer.
std::shared_ptr< CommBuf > CommBufPtr
Smart pointer to CommBuf.
Compatibility Macros for C/C++.
int send_response(const CommAddress &addr, CommBufPtr &cbuf)
Sends a response message back over a connection.
Declarations for CommBuf.
virtual int error(int error, const String &msg)
Sends a standard error response back to the client.
Declarations for Protocol.
Message buffer for holding data to be transmitted over a network.
EventPtr m_event
Smart pointer to event object.
Declarations for ResponseCallback.
Error codes, Exception handling, error logging.