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

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CNetworkHost Class Reference

#include <net_message.h>

Public Member Functions

 CNetworkHost ()
 
bool IsValid ()
 
net_message.cpp - The network message code.
size_t Serialize (unsigned char *buf) const
 
size_t Deserialize (const unsigned char *buf)
 
void Clear ()
 
void SetName (const char *name)
 

Static Public Member Functions

static size_t Size ()
 

Public Attributes

uint32_t Host
 
uint16_t Port
 Host address. More...
 
uint16_t PlyNr
 Port on host. More...
 
char PlyName [NetPlayerNameSize]
 Player number. More...
 

Detailed Description

Network systems active in current game.

Constructor & Destructor Documentation

◆ CNetworkHost()

CNetworkHost::CNetworkHost ( )
inline

Member Function Documentation

◆ Clear()

void CNetworkHost::Clear ( )

◆ Deserialize()

size_t CNetworkHost::Deserialize ( const unsigned char *  buf)

◆ IsValid()

bool CNetworkHost::IsValid ( )
inline

◆ Serialize()

size_t CNetworkHost::Serialize ( unsigned char *  buf) const

◆ SetName()

void CNetworkHost::SetName ( const char *  name)

◆ Size()

static size_t CNetworkHost::Size ( )
inlinestatic

Member Data Documentation

◆ Host

uint32_t CNetworkHost::Host

◆ PlyName

char CNetworkHost::PlyName[NetPlayerNameSize]

Player number.

◆ PlyNr

uint16_t CNetworkHost::PlyNr

Port on host.

◆ Port

uint16_t CNetworkHost::Port

Host address.


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.