#include <netbuffer.h>
Public Member Functions | |
NetBuffer () | |
NetBuffer (rcss::net::Addr addr, const std::string &data) | |
void | AddFragment (const std::string &d) |
appends a fragment to the buffer | |
bool | IsEmpty () const |
returns true iff the buffer is empty | |
const rcss::net::Addr & | GetAddr () const |
returns the network address associated with this buffer | |
std::string & | GetData () |
returns the managed buffer | |
Protected Attributes | |
rcss::net::Addr | mAddr |
the associated network address | |
std::string | mData |
the managed buffer |
The NetMessage class is responsible to extract meaningful messages.
Definition at line 32 of file netbuffer.h.
|
Definition at line 35 of file netbuffer.h. |
|
Definition at line 36 of file netbuffer.h. |
|
appends a fragment to the buffer
Definition at line 26 of file netbuffer.cpp. References mData. |
|
returns the network address associated with this buffer
Definition at line 31 of file netbuffer.cpp. References mAddr. |
|
returns the managed buffer
Definition at line 36 of file netbuffer.cpp. References mData. |
|
returns true iff the buffer is empty
Definition at line 41 of file netbuffer.cpp. References mData. |
|
the associated network address
Definition at line 53 of file netbuffer.h. Referenced by GetAddr(). |
|
the managed buffer
Definition at line 56 of file netbuffer.h. Referenced by AddFragment(), GetData(), and IsEmpty(). |