____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       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"

CNetworkPacket Class Reference

#include <network.h>

List of all members.

Public Member Functions

unsigned char * Serialize (int numcommands) const
int Deserialize (unsigned char *p, unsigned int len)

Static Public Member Functions

static size_t Size (int numcommands)

Public Attributes

CNetworkPacketHeader Header
 Packet Header Info.
CNetworkCommand Command [MaxNetworkCommands]


Detailed Description

Network packet.

This is sent over the network.

Definition at line 212 of file network.h.


Member Function Documentation

unsigned char * CNetworkPacket::Serialize ( int  numcommands  )  const

int CNetworkPacket::Deserialize ( unsigned char *  p,
unsigned int  len 
)

static size_t CNetworkPacket::Size ( int  numcommands  )  [inline, static]

Definition at line 216 of file network.h.

References CNetworkCommand::Size(), and CNetworkPacketHeader::Size().

Referenced by Deserialize(), NetworkBroadcast(), and Serialize().


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Sat Feb 21 00:28:23 2009 for Bos Wars by  doxygen 1.5.6