_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Public Attributes | List of all members
CNetworkPacket Class Reference

#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...
 

Detailed Description

Network packet.

This is sent over the network.

Member Function Documentation

◆ Deserialize()

void CNetworkPacket::Deserialize ( const unsigned char *  buf,
unsigned int  len,
int *  numcommands 
)

◆ Serialize()

size_t CNetworkPacket::Serialize ( unsigned char *  buf,
int  numcommands 
) const

◆ Size()

size_t CNetworkPacket::Size ( int  numcommands) const

Member Data Documentation

◆ Command

std::vector<unsigned char> CNetworkPacket::Command[MaxNetworkCommands]

Packet Header Info.

◆ Header

CNetworkPacketHeader CNetworkPacket::Header

The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.