ParaScripting::ParaPacket Class Reference
[ParaNetwork]

List of all members.

Detailed Description

NPL Network packet.


Public Member Functions

 ParaPacket (::NPL::NPLPacket *obj)
bool IsValid ()
 check if the object is valid
::NPL::NPLPacket * GetNPLPacket ()
 not used in script
void Release ()
 release this packet, call this function when a packet is not needed.
void ReleasePacketData ()
 same as Release();
void InvalidateMe ()
 make this packet invalid.
int GetType () const
 packet type
void SetType (int type)
 
Parameters:
type usually 103, which is a ID_NPL_CHAT

string GetDestName () const
void SetDestName (const char *destName)
string GetSrcName () const
void SetSrcName (const char *srcName)
unsigned long GetSize () const
string GetData () const
void SetDataAndSize (const char *data, unsigned long size)

Public Attributes

::NPL::NPLPacket * m_pObj


Member Function Documentation

void ParaScripting::ParaPacket::InvalidateMe (  ) 

make this packet invalid.

int ParaScripting::ParaPacket::GetType (  )  const

packet type

Returns:


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