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

       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"

CInitMessage Class Reference

#include <netconnect.h>

List of all members.

Public Member Functions

unsigned char * Serialize () const
void Deserialize (const unsigned char *p)

Static Public Member Functions

static size_t Size ()

Public Attributes

Uint8 Type
 Init message type.
Uint8 SubType
 Init message subtype.
Sint32 Stratagus
 Stratagus engine version.
Sint32 Version
 Network protocol version.
Uint32 ConfUID
 Engine configuration UID (Checksum) FIXME: not available yet.
Uint32 MapUID
 UID of map to play. FIXME: add MAP name, path, etc.
Sint32 Lag
 Lag time.
Sint32 Updates
 Update frequency.
Uint8 HostsCount
 Number of hosts.
union {
   CNetworkHost   Hosts [PlayerMax]
 Participant information.
   char   MapPath [256]
   CServerSetup   State
 Server Setup State information.
u


Detailed Description

Network init message.

Todo:
Transfering the same data in each message is waste of bandwidth. I mean the versions and the UID ...

Definition at line 121 of file netconnect.h.


Member Function Documentation

unsigned char * CInitMessage::Serialize (  )  const

void CInitMessage::Deserialize ( const unsigned char *  p  ) 

static size_t CInitMessage::Size (  )  [inline, static]


Member Data Documentation

Stratagus engine version.

Definition at line 129 of file netconnect.h.

Referenced by CheckVersions(), ClientParseConnecting(), Deserialize(), NetworkSendICMessage(), and Serialize().

Network protocol version.

Definition at line 130 of file netconnect.h.

Referenced by CheckVersions(), ClientParseConnecting(), Deserialize(), NetworkSendICMessage(), and Serialize().

Engine configuration UID (Checksum) FIXME: not available yet.

Definition at line 131 of file netconnect.h.

Referenced by Deserialize(), and Serialize().

Lag time.

Definition at line 133 of file netconnect.h.

Referenced by ClientParseConnecting(), Deserialize(), NetworkSendICMessage(), and Serialize().

Update frequency.

Definition at line 134 of file netconnect.h.

Referenced by ClientParseConnecting(), Deserialize(), NetworkSendICMessage(), and Serialize().

Number of hosts.

Definition at line 135 of file netconnect.h.

Referenced by ClientParseSynced(), Deserialize(), NetworkConnectSetupGame(), NetworkServerStartGame(), and Serialize().

Definition at line 139 of file netconnect.h.

Referenced by ClientParseConnected(), and ServerParseWaiting().

union { ... } CInitMessage::u


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