NPL::NPLPendingPacket Struct Reference

List of all members.

Detailed Description

Struct: NPLPendingPacket packets that are waiting to be sent either because of an unconnected destination or an unknown namespace.


Public Member Functions

 NPLPendingPacket (const NPL_PACKET_TYPE type, const char *data, const int length, const NPLBinaryAddress &destAddress, char orderingChannel=0, PacketPriority priority=NPL::MEDIUM_PRIORITY, PacketReliability reliability=NPL::RELIABLE_ORDERED)
void CopyFromData (const char *data, int bytesCount)
 copy data using new()
void IncreaseAge ()
int GetAge ()
void Release ()
 release this package.

Public Attributes

PacketPriority m_priority
PacketReliability m_reliability
char m_orderingChannel
NPL_PACKET_TYPE m_type
NPLBinaryAddress m_destAddress
int m_length
char * m_data


Member Function Documentation

void NPLPendingPacket::CopyFromData ( const char *  data,
int  bytesCount 
)

copy data using new()

Parameters:
data data to copy from
bytesCount in bytes

void NPLPendingPacket::Release (  ) 

release this package.

this calls something like delete this, so never call a pointer to this object after releasing it.


Generated on Mon Dec 1 14:34:43 2008 for NPL Scripting Reference for ParaEngine by  doxygen 1.5.2