NLNET::CBufferizedOutPacket Struct Reference


Public Member Functions

 CBufferizedOutPacket (CUdpSock *client, const uint8 *packet, uint32 packetSize, uint32 delay, const CInetAddress *addr)
 ~CBufferizedOutPacket ()

Data Fields

CInetAddressAddr
CUdpSockClient
uint8Packet
uint32 PacketSize
TTime Time

Constructor & Destructor Documentation

NLNET::CBufferizedOutPacket::CBufferizedOutPacket CUdpSock client,
const uint8 packet,
uint32  packetSize,
uint32  delay,
const CInetAddress addr
[inline]
 

Definition at line 47 of file udp_sim_sock.cpp.

References Addr, addr, Client, nlassert, Packet, PacketSize, uint32, and uint8.

00047                                                                                                                                :
00048                 Client(client), PacketSize(packetSize), Time(CTime::getLocalTime()+delay)
00049         {
00050                 nlassert (packetSize > 0);
00051                 nlassert (packet != NULL);
00052                 nlassert (client != NULL);
00053 
00054                 Packet = new uint8[packetSize];
00055                 memcpy (Packet, packet, packetSize);
00056 
00057                 if (addr != NULL)
00058                 {
00059                         Addr = new CInetAddress;
00060                         *Addr = *addr;
00061                 }
00062                 else
00063                 {
00064                         Addr = NULL;
00065                 }
00066         }

NLNET::CBufferizedOutPacket::~CBufferizedOutPacket  )  [inline]
 

Definition at line 68 of file udp_sim_sock.cpp.

References Addr, Client, nlassert, Packet, and PacketSize.

00069         {
00070                 nlassert (Packet != NULL);
00071                 delete [] Packet;
00072                 Packet = NULL;
00073                 Client = NULL;
00074                 PacketSize = 0;
00075                 Time = 0;
00076                 if (Addr != NULL)
00077                         delete Addr;
00078         }


Field Documentation

CInetAddress* NLNET::CBufferizedOutPacket::Addr
 

Definition at line 84 of file udp_sim_sock.cpp.

Referenced by CBufferizedOutPacket(), NLNET::CUdpSimSock::updateBufferizedPackets(), and ~CBufferizedOutPacket().

CUdpSock* NLNET::CBufferizedOutPacket::Client
 

Definition at line 80 of file udp_sim_sock.cpp.

Referenced by CBufferizedOutPacket(), and ~CBufferizedOutPacket().

uint8* NLNET::CBufferizedOutPacket::Packet
 

Definition at line 81 of file udp_sim_sock.cpp.

Referenced by CBufferizedOutPacket(), NLNET::CUdpSimSock::receive(), NLNET::CUdpSimSock::updateBufferizedPackets(), and ~CBufferizedOutPacket().

uint32 NLNET::CBufferizedOutPacket::PacketSize
 

Definition at line 82 of file udp_sim_sock.cpp.

Referenced by CBufferizedOutPacket(), NLNET::CUdpSimSock::receive(), NLNET::CUdpSimSock::updateBufferizedPackets(), and ~CBufferizedOutPacket().

TTime NLNET::CBufferizedOutPacket::Time
 

Definition at line 83 of file udp_sim_sock.cpp.

Referenced by NLNET::CUdpSimSock::sendUDP(), and NLNET::CUdpSimSock::updateBufferizedPackets().


The documentation for this struct was generated from the following file:
Generated on Tue Mar 16 13:52:15 2004 for NeL by doxygen 1.3.6