ClanSoft logo
ClanSoft logo
Entire Class Index Main Class Index Cross Index Global Index

Class CL_NetComputer

Class representing a computer in a network game.
Contained in: global
Derived from: none
Derived by: none
Group: Network (NetSessions)

#include <ClanLib/network.h>


public function member index:

Construction:

CL_NetComputer();
CL_NetComputer(const CL_NetComputer& copy);
virtual ~CL_NetComputer();

Attributes:

unsigned long get_address() const;
CL_NetSession get_session();
bool operator == (const CL_NetComputer& other_instance) const;
bool operator != (const CL_NetComputer& other_instance) const;
bool operator < (const CL_NetComputer& other_instance) const;
bool operator > (const CL_NetComputer& other_instance) const;

Operations:

void disconnect();
CL_NetComputer& operator = (const CL_NetComputer& other_instance);

Implementation:

CL_NetComputer(class CL_NetComputer_Generic* impl);
 

Description:


Function Member Descriptions:

CL_NetComputer::CL_NetComputer - Creates an unattached netcomputer object.
CL_NetComputer();


CL_NetComputer::CL_NetComputer - Creates an attached netcomputer object.
CL_NetComputer(const CL_NetComputer& copy);


CL_NetComputer::disconnect - Disconnects the computer from server.
void disconnect();


CL_NetComputer::get_address - Returns the IP address (in network byte order) of the computer.
unsigned long get_address() const;


CL_NetComputer::get_session - Returns the netsession that the computer is attached to.
CL_NetSession get_session();


CL_NetComputer::operator != - Returns true if objects are not the same.
bool operator != (const CL_NetComputer& other_instance) const;


CL_NetComputer::operator < - Returns true if the other netcomputer is less. This is used for sorting purposes (eg. if you use a std::map<CL_NetComputer, Player>), and sorts the netcomputers based on lowest IP number address.
bool operator < (const CL_NetComputer& other_instance) const;


CL_NetComputer::operator = - Copy Operator
CL_NetComputer& operator = (const CL_NetComputer& other_instance);


CL_NetComputer::operator == - Returns true if objects are the same.
bool operator == (const CL_NetComputer& other_instance) const;


CL_NetComputer::operator > - Returns true if the other netcomputer is greater. This is used for sorting purposes (eg. if you use a std::map<CL_NetComputer, Player>), and sorts the netcomputers based on lowest IP number address.
bool operator > (const CL_NetComputer& other_instance) const;


CL_NetComputer::~CL_NetComputer - Net Computer Destructor
virtual ~CL_NetComputer();



Variable Member Descriptions: