SLPacket Class Reference

<class description="" goes="" here=""> <short description=""> More...

#include <SyncLayer.hpp>

List of all members.


Public Member Functions

 SLPacket (SLPacketHeader Aslph, u8 *Apayload=0, size_t Apl_size=0, void *extra_data=NULL, u32 extra_data_size=0)
size_t getPayloadSize ()
u8 * getPayload ()
u8 * unsetPayload ()
 sets the payload to NULL but doesnt free it!
bool deletePayload ()
 deletes the payload and frees memory
SLPacketHeader & getSLPacketHeader ()

Protected Attributes

SLPacketHeader slph
u8 * payload
size_t pl_size

Detailed Description

<class description="" goes="" here=""> <short description="">

Author:
Michael Kropfberger and Peter Schojer
Version:
Id
SyncLayer.hpp,v 1.5 2006/01/20 15:37:54 mkropfbe Exp

Definition at line 162 of file SyncLayer.hpp.


Member Function Documentation

bool SLPacket::deletePayload  )  [inline]
 

deletes the payload and frees memory

Returns:
false if no payload was set
Definition at line 192 of file SyncLayer.hpp.
00192 { 00193 if (!payload) 00194 return false; 00195 delete payload; 00196 payload=NULL; 00197 pl_size = 0; 00198 return true; 00199 }


The documentation for this class was generated from the following files: