Home | All Classes | Grouped Classes | Index | Search

Class CL_NetComputer

Class representing a computer in a network game. More...

Derived from: none
Derived by: none
Group: Network (NetSessions)

#include <ClanLib/network.h>

Construction:

CL_NetComputer

Creates a netcomputer object.

Attributes:

get_address

Returns the IP address (in network byte order) of the computer.

get_session

Returns the netsession that the computer is attached to.

is_disconnected

Returns true if computer is disconnected.

get_disconnect_reason

Returns the disconnect reason.

operator ==

Returns true if objects are the same.

operator <

Returns true if the other netcomputer is less.

operator >

Returns true if the other netcomputer is greater.

get_thread_handle

Thread handle for this netcomputer (used for NetComputers' differentiation)

Operations:

disconnect

Disconnects the computer from server.

send

Send packet to the specified channel.

operator =

Copy Operator.

Implementation:

impl

Detailed description:

!group=Network/NetSessions! !header=network.h!


Questions or comments, write to the
ClanLib mailing list.