clan::NetGameServer Class Reference

NetGameServer. More...

#include <server.h>

+ Inheritance diagram for clan::NetGameServer:

Public Member Functions

 NetGameServer ()
 
 ~NetGameServer ()
 
void process_events ()
 Process events. More...
 
void send_event (const NetGameEvent &game_event)
 Send event. More...
 
Signal< void(NetGameConnection *)> & sig_client_connected ()
 
Signal< void(NetGameConnection
*, const std::string &)> & 
sig_client_disconnected ()
 
Signal< void(NetGameConnection
*, const NetGameEvent &)> & 
sig_event_received ()
 
void start (const std::string &port)
 Start. More...
 
void start (const std::string &address, const std::string &port)
 Start. More...
 
void stop ()
 Stop. More...
 

Detailed Description

Constructor & Destructor Documentation

clan::NetGameServer::NetGameServer ( )
clan::NetGameServer::~NetGameServer ( )

Member Function Documentation

void clan::NetGameServer::process_events ( )

Process events.

void clan::NetGameServer::send_event ( const NetGameEvent game_event)

Send event.

Parameters
game_event= Net Game Event
Signal<void(NetGameConnection *)>& clan::NetGameServer::sig_client_connected ( )
Signal<void(NetGameConnection *, const std::string &)>& clan::NetGameServer::sig_client_disconnected ( )
Signal<void(NetGameConnection *, const NetGameEvent &)>& clan::NetGameServer::sig_event_received ( )
void clan::NetGameServer::start ( const std::string port)

Start.

Parameters
port= String
void clan::NetGameServer::start ( const std::string address,
const std::string port 
)

Start.

Parameters
address= String
port= String
void clan::NetGameServer::stop ( )

Stop.


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