ClanLib  2.3.7
Public Member Functions | List of all members
CL_NetGameConnection Class Reference

CL_NetGameConnection. More...

#include <connection.h>

Public Member Functions

 CL_NetGameConnection (CL_NetGameConnectionSite *site, const CL_TCPConnection &connection)
 Constructs a NetGameConnection. More...
 
 CL_NetGameConnection (CL_NetGameConnectionSite *site, const CL_SocketName &socket_name)
 
 ~CL_NetGameConnection ()
 
void disconnect ()
 Disconnects a client. More...
 
void * get_data (const CL_StringRef &name) const
 Get data. More...
 
CL_SocketName get_remote_name () const
 Get Remote name. More...
 
void send_event (const CL_NetGameEvent &game_event)
 Send event. More...
 
void set_data (const CL_StringRef &name, void *data)
 Set data. More...
 

Detailed Description

CL_NetGameConnection.

Constructor & Destructor Documentation

CL_NetGameConnection::CL_NetGameConnection ( CL_NetGameConnectionSite site,
const CL_TCPConnection connection 
)

Constructs a NetGameConnection.

Parameters
site= Net Game Connection Site
connection= TCPConnection
CL_NetGameConnection::CL_NetGameConnection ( CL_NetGameConnectionSite site,
const CL_SocketName socket_name 
)
CL_NetGameConnection::~CL_NetGameConnection ( )

Member Function Documentation

void CL_NetGameConnection::disconnect ( )

Disconnects a client.

void* CL_NetGameConnection::get_data ( const CL_StringRef name) const

Get data.

Parameters
name= String Ref
Returns
void
CL_SocketName CL_NetGameConnection::get_remote_name ( ) const

Get Remote name.

Returns
remote_name
void CL_NetGameConnection::send_event ( const CL_NetGameEvent game_event)

Send event.

Parameters
game_event= Net Game Event
void CL_NetGameConnection::set_data ( const CL_StringRef name,
void *  data 
)

Set data.

Parameters
name= String Ref
data= void

The documentation for this class was generated from the following file: