13using std::stringstream;
const uint32_t getMessageId()
Returns associated message id (udp server only)
ServerRequest(const RequestType requestType, void *object, const string &custom=EVENT_CUSTOM_NONE, stringstream *messageFrame=NULL, const uint32_t messageId=MESSAGE_ID_UNSUPPORTED, const uint8_t messageRetries=MESSAGE_RETRIES_NONE)
Public constructor.
const RequestType getRequestType()
Returns the request type.
static const uint32_t MESSAGE_ID_UNSUPPORTED
static const uint8_t MESSAGE_RETRIES_NONE
const string & getCustomEvent()
~ServerRequest()
Public destructor.
void * getObject()
Returns the associated object.
@ REQUESTTYPE_GROUP_CUSTOM
@ REQUESTTYPE_GROUP_CLOSE
@ REQUESTTYPE_CLIENT_INIT
@ REQUESTTYPE_CLIENT_CUSTOM
@ REQUESTTYPE_CLIENT_CLOSE
@ REQUESTTYPE_CLIENT_REQUEST
const uint8_t getMessageRetries()
Returns number of message retries (udp server only)
stringstream * getMessageFrame()
Returns the associated request message frame stream.
static const string EVENT_CUSTOM_NONE
stringstream * messageFrame