llpacketbuffer.h

Go to the documentation of this file.
00001 
00033 #ifndef LL_LLPACKETBUFFER_H
00034 #define LL_LLPACKETBUFFER_H
00035 
00036 #include "net.h"                // for NET_BUFFER_SIZE
00037 #include "llhost.h"
00038 
00039 class LLPacketBuffer
00040 {
00041 public:
00042         LLPacketBuffer(const LLHost &host, const char *datap, const S32 size);
00043         LLPacketBuffer(S32 hSocket);           // receive a packet
00044         ~LLPacketBuffer();
00045 
00046         S32                     getSize() const         { return mSize; }
00047         const char      *getData() const        { return mData; }
00048         LLHost          getHost() const         { return mHost; }
00049         void init(S32 hSocket);
00050         void free();
00051 
00052 protected:
00053         char    mData[NET_BUFFER_SIZE];        // packet data           /* Flawfinder : ignore */
00054         S32             mSize;          // size of buffer in bytes
00055         LLHost  mHost;         // source/dest IP and port
00056 };
00057 
00058 #endif
00059 
00060 

Generated on Thu Jul 1 06:08:55 2010 for Second Life Viewer by  doxygen 1.4.7