29 #ifndef AsyncComm_Protocol_h
30 #define AsyncComm_Protocol_h
146 #endif // AsyncComm_Protocol_h
Network communication event.
static int32_t response_code(const Event *event)
Returns the response code from an event event generated in response to a request message.
std::string String
A String is simply a typedef to std::string.
static String string_format_message(const Event *event)
Returns error message decoded standard error MESSAGE generated in response to a request message...
std::shared_ptr< Event > EventPtr
Smart pointer to Event.
static CommBufPtr create_error_message(CommHeader &header, int error, const char *msg)
Creates a standard error message response.
virtual const char * command_text(uint64_t command)=0
Returns the string representation of a command code.
std::shared_ptr< CommBuf > CommBufPtr
Smart pointer to CommBuf.
static int32_t response_code(const EventPtr &event)
Returns the response code from an event event generated in response to a request message.
Declarations for CommBuf.
Abstract base class for server protocol drivers.
static String string_format_message(const EventPtr &event)
Returns error message decoded from standard error MESSAGE generated in response to a request message...
virtual ~Protocol()
Destructor.