PGE API 0.4
PR00F's Game Engine full documentation
|
The primary interface to networking functionality. More...
The primary interface to networking functionality.
Definition at line 25 of file PgeINetwork.h.
#include <PgeINetwork.h>
Public Member Functions | |
virtual bool | initialize ()=0 |
Initialize the networking subsystem. | |
virtual bool | shutdown ()=0 |
Stops the networking subsystem. | |
virtual bool | isInitialized () const =0 |
Gets the state of the networking subsystem. | |
virtual bool | reinitialize ()=0 |
Stop and then initialize the networking subsystem. | |
virtual void | disconnect (const std::string &sExtraDebugText)=0 |
Disconnects the initialized networking subsystem. | |
virtual bool | isServer () const =0 |
Returns whether the initialized network subsystem should be the server instance. | |
virtual void | Update ()=0 |
Handles connection state changes and forwards messages to the application. | |
virtual PgeIServerClient * | getServerClientInstance ()=0 |
Returns access to the initialized networking subsystem. | |
virtual PgeIClient & | getClient ()=0 |
Returns the client instance. | |
virtual PgeIServer & | getServer ()=0 |
Returns the server instance. | |
virtual void | WriteList () const =0 |
Writes statistics to console. | |
Static Public Member Functions | |
static const char * | getLoggerModuleName () |
Returns the logger module name of this class. | |
Static Public Attributes | |
static constexpr char * | CVAR_NET_SERVER = "net_server" |
|
pure virtual |
Disconnects the initialized networking subsystem.
Implemented in pge_network::PgeNetworkStub, and PgeNetworkImpl.
|
pure virtual |
Returns the client instance.
Implemented in pge_network::PgeNetworkStub, and PgeNetworkImpl.
|
inlinestatic |
Returns the logger module name of this class.
Not private, so user can also access this from outside, for any reason like controlling log filtering per logger module name.
Definition at line 41 of file PgeINetwork.h.
|
pure virtual |
Returns the server instance.
Implemented in pge_network::PgeNetworkStub, and PgeNetworkImpl.
|
pure virtual |
Returns access to the initialized networking subsystem.
Implemented in pge_network::PgeNetworkStub, and PgeNetworkImpl.
|
pure virtual |
Initialize the networking subsystem.
Implemented in pge_network::PgeNetworkStub, and PgeNetworkImpl.
|
pure virtual |
Gets the state of the networking subsystem.
Implemented in pge_network::PgeNetworkStub, and PgeNetworkImpl.
|
pure virtual |
Returns whether the initialized network subsystem should be the server instance.
Implemented in pge_network::PgeNetworkStub, and PgeNetworkImpl.
|
pure virtual |
Stop and then initialize the networking subsystem.
Implemented in pge_network::PgeNetworkStub, and PgeNetworkImpl.
|
pure virtual |
Stops the networking subsystem.
Implemented in pge_network::PgeNetworkStub, and PgeNetworkImpl.
|
pure virtual |
Handles connection state changes and forwards messages to the application.
Implemented in pge_network::PgeNetworkStub, and PgeNetworkImpl.
|
pure virtual |
Writes statistics to console.
Implemented in pge_network::PgeNetworkStub, and PgeNetworkImpl.
|
staticconstexpr |
Definition at line 33 of file PgeINetwork.h.