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

Public Member Functions | List of all members
CHost Class Reference

#include <netsockets.h>

Public Member Functions

 CHost ()
 
 CHost (unsigned long ip, int port)
 
unsigned long getIp () const
 
int getPort () const
 
bool operator== (const CHost &rhs) const
 
bool operator!= (const CHost &rhs) const
 
netsockets.cpp - TCP and UDP sockets.
 CHost (const char *name, int port)
 
std::string toString () const
 
bool isValid () const
 

Constructor & Destructor Documentation

◆ CHost() [1/3]

CHost::CHost ( )
inline

◆ CHost() [2/3]

CHost::CHost ( const char *  name,
int  port 
)

◆ CHost() [3/3]

CHost::CHost ( unsigned long  ip,
int  port 
)
inline

Member Function Documentation

◆ getIp()

unsigned long CHost::getIp ( ) const
inline

◆ getPort()

int CHost::getPort ( ) const
inline

◆ isValid()

bool CHost::isValid ( ) const

◆ operator!=()

bool CHost::operator!= ( const CHost rhs) const
inline

◆ operator==()

bool CHost::operator== ( const CHost rhs) const
inline

◆ toString()

std::string CHost::toString ( ) const

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.