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

       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"

CNetworkPacketHeader Class Reference

#include <network.h>

List of all members.

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.


Detailed Description

Network packet header.

Header for the packet.

Definition at line 192 of file network.h.


Constructor & Destructor Documentation

CNetworkPacketHeader::CNetworkPacketHeader (  )  [inline]

Definition at line 194 of file network.h.

References Cycle, and Type.


Member Function Documentation

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]


Member Data Documentation

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]


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