![]() |
DDraceNetwork Documentation
|
#include <network.h>
Public Member Functions | |
| void | FeedPacket (const NETADDR &Addr, const CNetPacketConstruct &Packet, CNetConnection *pConnection, int ClientId) |
| bool | UnpackNextChunk (CNetChunk *pChunk) |
Private Attributes | |
| bool | m_Valid = false |
| NETADDR | m_Addr |
| CNetConnection * | m_pConnection |
| int | m_CurrentChunk |
| int | m_ClientId |
| CNetPacketConstruct | m_Data |
Accepts a non-control packet containing one or more chunks and unpacks each chunk individually. After a packet has been fed into the unpacker by calling FeedPacket, all chunks have to be unpacked by calling UnpackNextChunk until the function returns false, before the unpacker can be fed another packet.
| void CPacketChunkUnpacker::FeedPacket | ( | const NETADDR & | Addr, |
| const CNetPacketConstruct & | Packet, | ||
| CNetConnection * | pConnection, | ||
| int | ClientId ) |
| bool CPacketChunkUnpacker::UnpackNextChunk | ( | CNetChunk * | pChunk | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |