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

CInitMessage Class Reference

#include <netconnect.h>

List of all members.


Public Member Functions

netconnect.cpp - The network high level connection code.
unsigned char * Serialize () const
void Deserialize (const unsigned char *p)

Static Public Member Functions

static size_t Size ()

Public Attributes

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

Detailed Description

Network init message.

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

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

Init message type.

Init message subtype.

Stratagus engine version.

Network protocol version.

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

UID of map to play. FIXME: add MAP name, path, etc.

Lag time.

Update frequency.

Participant information.

union { ... } CInitMessage::u

Number of hosts.


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