|
My Project
|
Public Member Functions | |
| NetCmdHandler () | |
| virtual | ~NetCmdHandler () |
| void | packNetCmd (gcp::util::NetCmd *rtc) |
| void | packNetCmd (gcp::control::RtcNetCmd *rtc, gcp::control::NetCmdId opcode) |
| gcp::util::NetCmd * | getLastReadNetCmd () |
| gcp::util::NetCmd * | getLastSentNetCmd () |
| void | installReadHandler (NET_READ_HANDLER(*handler), void *arg) |
| void | installSendHandler (NET_SEND_HANDLER(*handler), void *arg) |
| void | installErrorHandler (NET_ERROR_HANDLER(*handler), void *arg) |
Public Member Functions inherited from gcp::util::NetHandler | |
| NetHandler () | |
| NetHandler (int fd) | |
| virtual | ~NetHandler () |
| void | attachReadStream (int fd) |
| void | attachSendStream (int fd) |
| void | attach (int fd) |
| virtual int | getReadFd () |
| virtual int | getSendFd () |
| virtual int | getFd () |
| void | setReadBuffer (void *buffer, unsigned int size) |
| void | setSendBuffer (void *buffer, unsigned int size) |
| gcp::util::NetSendStr::NetSendId | send () |
| gcp::util::NetSendStr::NetSendId | send (int fd) |
| gcp::util::NetReadStr::NetReadId | read () |
| gcp::util::NetReadStr::NetReadId | read (int fd) |
| NetReadStr * | getReadStr () |
| NetSendStr * | getSendStr () |
| virtual void | installReadErrorHandler (NET_ERROR_HANDLER(*handler), void *arg) |
| virtual void | installSendErrorHandler (NET_ERROR_HANDLER(*handler), void *arg) |
Additional Inherited Members | |
Protected Attributes inherited from gcp::util::NetHandler | |
| int | fd_ |
| NetReadStr * | nrs_ |
| NetSendStr * | nss_ |
| NetCmdHandler::NetCmdHandler | ( | ) |
Constructor.
....................................................................... Constructor.
|
virtual |
Destructor.
....................................................................... Destructor.
| gcp::util::NetCmd * NetCmdHandler::getLastReadNetCmd | ( | ) |
Return the network message we just read.
....................................................................... Get the last read network command.
| gcp::util::NetCmd * NetCmdHandler::getLastSentNetCmd | ( | ) |
Of the one we just sent
....................................................................... Get the last sent network command.
|
virtual |
....................................................................... Methods to install user-defined handlers
Reimplemented from gcp::util::NetHandler.
|
virtual |
Overload the base-class methods to install user-defined handlers
....................................................................... Methods to install user-defined handlers
Reimplemented from gcp::util::NetHandler.
|
virtual |
....................................................................... Methods to install user-defined handlers
Reimplemented from gcp::util::NetHandler.
| void NetCmdHandler::packNetCmd | ( | gcp::util::NetCmd * | netCmd | ) |
Pack a network command into our send buffer.;
....................................................................... Pack a network command.
| void NetCmdHandler::packNetCmd | ( | gcp::control::RtcNetCmd * | rtc, |
| gcp::control::NetCmdId | opcode | ||
| ) |
Pack a command into our send buffer.
....................................................................... Pack a network command.