#include <tnlBitStream.h>
Inheritance diagram for TNL::PacketStream:
Public Member Functions | |
PacketStream (U32 targetPacketSize=MaxPacketDataSize) | |
Constructor assigns the internal buffer to the BitStream. | |
NetError | sendto (Socket &outgoingSocket, const Address &theAddress) |
Sends this packet to the specified address through the specified socket. | |
NetError | recvfrom (Socket &incomingSocket, Address *recvAddress) |
Reads a packet into the stream from the specified socket. | |
Private Types | |
typedef BitStream | Parent |
Private Attributes | |
U8 | buffer [MaxPacketDataSize] |
internal buffer for packet data, sized to the maximum UDP packet size. |
|
|
|
Constructor assigns the internal buffer to the BitStream.
|
|
Sends this packet to the specified address through the specified socket.
|
|
Reads a packet into the stream from the specified socket.
|
|
internal buffer for packet data, sized to the maximum UDP packet size.
|