Planeshift
psNetPacketEntry Class Reference

#include <netpacket.h>

Public Member Functions

bool Append (psNetPacketEntry *next)
 
void * GetData ()
 
csPtr< psNetPacketEntryGetNextPacket (psNetPacket *&packetdata)
 
bool GetPending ()
 
bool operator< (const psNetPacketEntry &other) const
 
 psNetPacketEntry (psNetPacket *packet, uint32_t cnum, uint16_t sz)
 construct a new PacketEntry from a packet, not that this classe calls free on the packet pointer later! More...
 
 psNetPacketEntry (uint8_t pri, uint32_t cnum, uint32_t id, uint32_t off, uint32_t totalsize, uint16_t sz, psMessageBytes *msg)
 construct a new PacketEntry for a single or partial message More...
 
 psNetPacketEntry (uint8_t pri, uint32_t cnum, uint32_t id, uint32_t off, uint32_t totalsize, uint16_t sz, const char *bytes)
 construct a new PacketEntry for a specified buffer of bytes More...
 
 psNetPacketEntry (psNetPacketEntry *)
 
void SetPending (bool)
 
 ~psNetPacketEntry ()
 
- Public Member Functions inherited from csSyncRefCount
 csSyncRefCount ()
 Initialize object and set reference to 1. More...
 
void DecRef ()
 Decrease the number of references to this object. More...
 
int32 GetRefCount ()
 Get the reference count (only for debugging). More...
 
void IncRef ()
 Increase the number of references to this object. More...
 

Public Attributes

uint32_t clientnum
 clientnum this packet comes from/goes to More...
 
psNetPacketpacket
 The Packet like it is returned from reading UDP socket / will be written to socket. More...
 
bool retransmitted
 has this packet been retransmitted More...
 
csTicks RTO
 timeout More...
 
csTicks timestamp
 

Additional Inherited Members

- Protected Member Functions inherited from csSyncRefCount
virtual ~csSyncRefCount ()
 
- Protected Attributes inherited from csSyncRefCount
int32 ref_count
 

Detailed Description

Definition at line 178 of file netpacket.h.

Constructor & Destructor Documentation

psNetPacketEntry::psNetPacketEntry ( psNetPacket packet,
uint32_t  cnum,
uint16_t  sz 
)

construct a new PacketEntry from a packet, not that this classe calls free on the packet pointer later!

psNetPacketEntry::psNetPacketEntry ( uint8_t  pri,
uint32_t  cnum,
uint32_t  id,
uint32_t  off,
uint32_t  totalsize,
uint16_t  sz,
psMessageBytes msg 
)

construct a new PacketEntry for a single or partial message

psNetPacketEntry::psNetPacketEntry ( uint8_t  pri,
uint32_t  cnum,
uint32_t  id,
uint32_t  off,
uint32_t  totalsize,
uint16_t  sz,
const char *  bytes 
)

construct a new PacketEntry for a specified buffer of bytes

psNetPacketEntry::psNetPacketEntry ( psNetPacketEntry )
inline

Definition at line 212 of file netpacket.h.

psNetPacketEntry::~psNetPacketEntry ( )

Member Function Documentation

bool psNetPacketEntry::Append ( psNetPacketEntry next)
void* psNetPacketEntry::GetData ( )
inline

Definition at line 223 of file netpacket.h.

csPtr<psNetPacketEntry> psNetPacketEntry::GetNextPacket ( psNetPacket *&  packetdata)
bool psNetPacketEntry::GetPending ( )
inline

Definition at line 251 of file netpacket.h.

bool psNetPacketEntry::operator< ( const psNetPacketEntry other) const
inline

Definition at line 228 of file netpacket.h.

void psNetPacketEntry::SetPending ( bool  )
inline

Definition at line 249 of file netpacket.h.

Member Data Documentation

uint32_t psNetPacketEntry::clientnum

clientnum this packet comes from/goes to

Definition at line 182 of file netpacket.h.

psNetPacket* psNetPacketEntry::packet

The Packet like it is returned from reading UDP socket / will be written to socket.

Definition at line 195 of file netpacket.h.

bool psNetPacketEntry::retransmitted

has this packet been retransmitted

Definition at line 187 of file netpacket.h.

csTicks psNetPacketEntry::RTO

timeout

Definition at line 190 of file netpacket.h.

csTicks psNetPacketEntry::timestamp

Definition at line 184 of file netpacket.h.


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