_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <net_message.h>
Public Member Functions | |
net_message.cpp - The network message code. | |
size_t | Serialize (unsigned char *buf, int numcommands) const |
void | Deserialize (const unsigned char *buf, unsigned int len, int *numcommands) |
size_t | Size (int numcommands) const |
Public Attributes | |
CNetworkPacketHeader | Header |
std::vector< unsigned char > | Command [MaxNetworkCommands] |
Packet Header Info. More... | |
Network packet.
This is sent over the network.
void CNetworkPacket::Deserialize | ( | const unsigned char * | buf, |
unsigned int | len, | ||
int * | numcommands | ||
) |
size_t CNetworkPacket::Serialize | ( | unsigned char * | buf, |
int | numcommands | ||
) | const |
size_t CNetworkPacket::Size | ( | int | numcommands | ) | const |
std::vector<unsigned char> CNetworkPacket::Command[MaxNetworkCommands] |
Packet Header Info.
CNetworkPacketHeader CNetworkPacket::Header |