Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

oxygen::NetBuffer Class Reference

buffer that is used to hold the raw network stream of data. More...

#include <netbuffer.h>

List of all members.

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


Detailed Description

buffer that is used to hold the raw network stream of data.

The NetMessage class is responsible to extract meaningful messages.

Definition at line 32 of file netbuffer.h.


Constructor & Destructor Documentation

oxygen::NetBuffer::NetBuffer  )  [inline]
 

Definition at line 35 of file netbuffer.h.

oxygen::NetBuffer::NetBuffer rcss::net::Addr  addr,
const std::string &  data
[inline]
 

Definition at line 36 of file netbuffer.h.


Member Function Documentation

void NetBuffer::AddFragment const std::string &  d  ) 
 

appends a fragment to the buffer

Definition at line 26 of file netbuffer.cpp.

References mData.

const Addr & NetBuffer::GetAddr  )  const
 

returns the network address associated with this buffer

Definition at line 31 of file netbuffer.cpp.

References mAddr.

string & NetBuffer::GetData  ) 
 

returns the managed buffer

Definition at line 36 of file netbuffer.cpp.

References mData.

bool NetBuffer::IsEmpty  )  const
 

returns true iff the buffer is empty

Definition at line 41 of file netbuffer.cpp.

References mData.


Member Data Documentation

rcss::net::Addr oxygen::NetBuffer::mAddr [protected]
 

the associated network address

Definition at line 53 of file netbuffer.h.

Referenced by GetAddr().

std::string oxygen::NetBuffer::mData [protected]
 

the managed buffer

Definition at line 56 of file netbuffer.h.

Referenced by AddFragment(), GetData(), and IsEmpty().


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:47:31 2006 for rcssserver3d by  doxygen 1.4.4