clan::NetGameConnection Class Reference

NetGameConnection. More...

#include <connection.h>

Public Member Functions

 NetGameConnection (NetGameConnectionSite *site, const TCPConnection &connection)
 Constructs a NetGameConnection. More...
 
 NetGameConnection (NetGameConnectionSite *site, const SocketName &socket_name)
 
 ~NetGameConnection ()
 
void disconnect ()
 Disconnects a client. More...
 
void * get_data (const std::string &name) const
 Get data. More...
 
SocketName get_remote_name () const
 Get Remote name. More...
 
void send_event (const NetGameEvent &game_event)
 Send event. More...
 
void set_data (const std::string &name, void *data)
 Set data. More...
 

Detailed Description

Constructor & Destructor Documentation

clan::NetGameConnection::NetGameConnection ( NetGameConnectionSite site,
const TCPConnection connection 
)

Constructs a NetGameConnection.

Parameters
site= Net Game Connection Site
connection= TCPConnection
clan::NetGameConnection::NetGameConnection ( NetGameConnectionSite site,
const SocketName socket_name 
)
clan::NetGameConnection::~NetGameConnection ( )

Member Function Documentation

void clan::NetGameConnection::disconnect ( )

Disconnects a client.

void* clan::NetGameConnection::get_data ( const std::string name) const

Get data.

Parameters
name= String Ref
Returns
void
SocketName clan::NetGameConnection::get_remote_name ( ) const

Get Remote name.

Returns
remote_name
void clan::NetGameConnection::send_event ( const NetGameEvent game_event)

Send event.

Parameters
game_event= Net Game Event
void clan::NetGameConnection::set_data ( const std::string name,
void *  data 
)

Set data.

Parameters
name= String Ref
data= void

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