$treeview $search $mathjax
Stratagus  2.2.7
$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_t Type
uint8_t SubType
 Init message type.
int32_t Stratagus
 Init message subtype.
int32_t Version
 Stratagus engine version.
uint32_t ConfUID
 Network protocol version.
uint32_t MapUID
 Engine configuration UID (Checksum) FIXME: not available yet.
int32_t Lag
 UID of map to play. FIXME: add MAP name, path, etc.
int32_t Updates
 Lag time.
uint8_t 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-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.