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 |
void NPLPendingPacket::CopyFromData | ( | const char * | data, | |
int | bytesCount | |||
) |
copy data using new()
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.