Planeshift
Public Member Functions | Public Attributes

psNetPacketEntry Class Reference

#include <netpacket.h>

List of all members.

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!
 psNetPacketEntry (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 (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
void SetPending (bool)
 ~psNetPacketEntry ()

Public Attributes

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

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

clientnum this packet comes from/goes to

Definition at line 182 of file netpacket.h.

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

Definition at line 195 of file netpacket.h.

has this packet been retransmitted

Definition at line 187 of file netpacket.h.

timeout

Definition at line 190 of file netpacket.h.

Definition at line 184 of file netpacket.h.


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