Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
NetworkBuffer Class Reference
Detailed DescriptionThis is used to incrementally build up a buffer to be sent over the network , so that only one call to the socket write function needs to be made. Definition at line 7 of file NetworkBuffer.h.
Constructor & Destructor Documentation
constructor Definition at line 11 of file NetworkBuffer.h.
destructor Definition at line 16 of file NetworkBuffer.h.
do not call Member Function Documentation
Template for adding a buffer such with a size to the network buffer. Definition at line 31 of file NetworkBuffer.h. Referenced by EventProxy::processEvent(), and EventProxy::sendState().
template<class T >
Template for adding a single item to the buffer, such as a struct or an int. Definition at line 21 of file NetworkBuffer.h. Referenced by addBuffer(), EventProxy::processEvent(), RemoteRouter::sendRemoteRequest(), and EventProxy::sendState().
Returns a const pointer to the buffer, for debugging networking code. Definition at line 44 of file NetworkBuffer.h.
Returns the current size of the buffer. Definition at line 41 of file NetworkBuffer.h.
do not call
Sends the buffer over the given socket. Definition at line 47 of file NetworkBuffer.h. Referenced by EventProxy::processEvent(), RemoteRouter::sendRemoteRequest(), and EventProxy::sendState(). Member Data Documentation
the buffer being built Definition at line 57 of file NetworkBuffer.h. Referenced by addBuffer(), addItem(), getBytes(), NetworkBuffer(), send(), and ~NetworkBuffer().
size of memory region at buf Definition at line 59 of file NetworkBuffer.h. Referenced by addBuffer(), addItem(), and NetworkBuffer().
current position in buf Definition at line 58 of file NetworkBuffer.h. Referenced by addBuffer(), addItem(), getSize(), and send(). The documentation for this class was generated from the following file: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:13 2016 by Doxygen 1.6.3 |