My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::NetCmdHandler Class Reference
Inheritance diagram for gcp::util::NetCmdHandler:
gcp::util::NetHandler

Public Member Functions

 NetCmdHandler ()
 
virtual ~NetCmdHandler ()
 
void packNetCmd (gcp::util::NetCmd *rtc)
 
void packNetCmd (gcp::control::RtcNetCmd *rtc, gcp::control::NetCmdId opcode)
 
gcp::util::NetCmdgetLastReadNetCmd ()
 
gcp::util::NetCmdgetLastSentNetCmd ()
 
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)
 
NetReadStrgetReadStr ()
 
NetSendStrgetSendStr ()
 
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_
 
NetReadStrnrs_
 
NetSendStrnss_
 

Constructor & Destructor Documentation

NetCmdHandler::NetCmdHandler ( )

Constructor.

....................................................................... Constructor.

NetCmdHandler::~NetCmdHandler ( )
virtual

Destructor.

....................................................................... Destructor.

Member Function Documentation

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.

void NetCmdHandler::installErrorHandler ( NET_ERROR_HANDLER *  handler,
void *  arg 
)
virtual

....................................................................... Methods to install user-defined handlers

Reimplemented from gcp::util::NetHandler.

void NetCmdHandler::installReadHandler ( NET_READ_HANDLER *  handler,
void *  arg 
)
virtual

Overload the base-class methods to install user-defined handlers

....................................................................... Methods to install user-defined handlers

Reimplemented from gcp::util::NetHandler.

void NetCmdHandler::installSendHandler ( NET_SEND_HANDLER *  handler,
void *  arg 
)
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.


The documentation for this class was generated from the following files: