LLPacketBuffer Class Reference

#include <llpacketbuffer.h>

Collaboration diagram for LLPacketBuffer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLPacketBuffer (const LLHost &host, const char *datap, const S32 size)
 LLPacketBuffer (S32 hSocket)
 ~LLPacketBuffer ()
S32 getSize () const
const char * getData () const
LLHost getHost () const
void init (S32 hSocket)
void free ()

Protected Attributes

char mData [NET_BUFFER_SIZE]
S32 mSize
LLHost mHost

Detailed Description

Definition at line 39 of file llpacketbuffer.h.


Constructor & Destructor Documentation

LLPacketBuffer::LLPacketBuffer ( const LLHost host,
const char *  datap,
const S32  size 
)

Definition at line 42 of file llpacketbuffer.cpp.

References llendl, llerrs, mData, mSize, NET_BUFFER_SIZE, and NULL.

LLPacketBuffer::LLPacketBuffer ( S32  hSocket  ) 

Definition at line 59 of file llpacketbuffer.cpp.

References init().

LLPacketBuffer::~LLPacketBuffer (  ) 

Definition at line 66 of file llpacketbuffer.cpp.

References free().


Member Function Documentation

void LLPacketBuffer::free (  ) 

Definition at line 81 of file llpacketbuffer.cpp.

Referenced by ~LLPacketBuffer().

const char* LLPacketBuffer::getData (  )  const [inline]

Definition at line 47 of file llpacketbuffer.h.

References mData.

Referenced by LLPacketRing::receiveFromRing(), and LLPacketRing::sendPacket().

LLHost LLPacketBuffer::getHost (  )  const [inline]

Definition at line 48 of file llpacketbuffer.h.

References mHost.

Referenced by LLPacketRing::receiveFromRing(), and LLPacketRing::sendPacket().

S32 LLPacketBuffer::getSize (  )  const [inline]

Definition at line 46 of file llpacketbuffer.h.

References mSize.

Referenced by LLPacketRing::receiveFromRing(), LLPacketRing::receivePacket(), and LLPacketRing::sendPacket().

void LLPacketBuffer::init ( S32  hSocket  ) 

Definition at line 73 of file llpacketbuffer.cpp.

References get_sender(), mData, mHost, mSize, and receive_packet().

Referenced by LLPacketBuffer().


Member Data Documentation

char LLPacketBuffer::mData[NET_BUFFER_SIZE] [protected]

Definition at line 53 of file llpacketbuffer.h.

Referenced by getData(), init(), and LLPacketBuffer().

LLHost LLPacketBuffer::mHost [protected]

Definition at line 55 of file llpacketbuffer.h.

Referenced by getHost(), and init().

S32 LLPacketBuffer::mSize [protected]

Definition at line 54 of file llpacketbuffer.h.

Referenced by getSize(), init(), and LLPacketBuffer().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:33 2010 for Second Life Viewer by  doxygen 1.4.7