Network Server Class. More...
#include <deServer.h>
Public Member Functions | |
Constructors and Destructors | |
| deServer (deServerManager *manager) | |
| Creates a new server object. | |
| virtual | ~deServer () |
| Cleans up the server object. | |
Management | |
| const char * | GetAddress () const |
| Retrieves the address. | |
| void | SetAddress (const char *address) |
| Sets the address. | |
| bool | ListenOn (const char *address) |
| Starts listening on the given address for incoming connections. | |
| void | StopListening () |
| Stops listening. | |
System Peers | |
| deBaseNetworkServer * | GetNetworkServer () const |
| Retrieves the network system peer object. | |
| void | SetNetworkServer (deBaseNetworkServer *netServer) |
| Sets the network system peer object. | |
| deBaseScriptingServer * | GetScriptingServer () const |
| Retrieves the scripting system peer object. | |
| void | SetScriptingServer (deBaseScriptingServer *scrServer) |
| Sets the scripting system peer object. | |
Network Server Class.
Manages a server for a network game. The server is a connection point for players connecting to a network game. Every server listens on one address. For connecting players a new connection object is created handling the communication.
| deServer::deServer | ( | deServerManager * | manager ) |
Creates a new server object.
| virtual deServer::~deServer | ( | ) | [virtual] |
Cleans up the server object.
| const char* deServer::GetAddress | ( | ) | const [inline] |
Retrieves the address.
| deBaseNetworkServer* deServer::GetNetworkServer | ( | ) | const [inline] |
Retrieves the network system peer object.
| deBaseScriptingServer* deServer::GetScriptingServer | ( | ) | const [inline] |
Retrieves the scripting system peer object.
| bool deServer::ListenOn | ( | const char * | address ) |
Starts listening on the given address for incoming connections.
The format of the address is specific to the network module. Returns true if listening or false if something went wrong.
| void deServer::SetAddress | ( | const char * | address ) |
Sets the address.
Intended to be used by the network module only so do not call it otherwise.
| void deServer::SetNetworkServer | ( | deBaseNetworkServer * | netServer ) |
Sets the network system peer object.
| void deServer::SetScriptingServer | ( | deBaseScriptingServer * | scrServer ) |
Sets the scripting system peer object.
| void deServer::StopListening | ( | ) |
Stops listening.
1.7.2