____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"#include <network.h>
Public Member Functions | |
| CNetworkPacketHeader () | |
| void | Serialize (unsigned char *p) const |
| void | Deserialize (unsigned char *p) |
Static Public Member Functions | |
| static size_t | Size () |
Public Attributes | |
| Uint8 | Cycle |
| Destination game cycle. | |
| Uint8 | Type [MaxNetworkCommands] |
| Commands in packet. | |
Header for the packet.
Definition at line 192 of file network.h.
| CNetworkPacketHeader::CNetworkPacketHeader | ( | ) | [inline] |
| void CNetworkPacketHeader::Serialize | ( | unsigned char * | p | ) | const |
Definition at line 364 of file network.cpp.
References Cycle, MaxNetworkCommands, and Type.
Referenced by CNetworkPacket::Serialize().
| void CNetworkPacketHeader::Deserialize | ( | unsigned char * | p | ) |
Definition at line 372 of file network.cpp.
References Cycle, MaxNetworkCommands, and Type.
Referenced by CNetworkPacket::Deserialize().
| static size_t CNetworkPacketHeader::Size | ( | ) | [inline, static] |
Definition at line 201 of file network.h.
References MaxNetworkCommands.
Referenced by CNetworkPacket::Deserialize(), NetworkSendSelection(), CNetworkPacket::Serialize(), and CNetworkPacket::Size().
Destination game cycle.
Definition at line 203 of file network.h.
Referenced by CNetworkPacketHeader(), Deserialize(), NetworkEvent(), NetworkRecover(), NetworkResendCommands(), NetworkSendPacket(), and Serialize().
| Uint8 CNetworkPacketHeader::Type[MaxNetworkCommands] |
Commands in packet.
Definition at line 204 of file network.h.
Referenced by CNetworkPacketHeader(), CNetworkPacket::Deserialize(), Deserialize(), NetworkEvent(), NetworkRecover(), NetworkResendCommands(), NetworkSendPacket(), NetworkSendSelection(), CNetworkPacket::Serialize(), and Serialize().
1.5.6