PGE API 0.4
PR00F's Game Engine full documentation
|
The primary interface to stubbed networking functionality. More...
The primary interface to stubbed networking functionality.
Definition at line 28 of file PgeNetworkStub.h.
#include <PgeNetworkStub.h>
Public Member Functions | |
PgeNetworkStub (PGEcfgProfiles &cfgProfiles) | |
PgeNetworkStub (const PgeNetworkStub &)=delete | |
PgeNetworkStub & | operator= (const PgeNetworkStub &)=delete |
PgeNetworkStub (PgeNetworkStub &&)=delete | |
PgeNetworkStub && | operator= (PgeNetworkStub &&)=delete |
virtual | ~PgeNetworkStub () |
bool | initialize () override |
Initialize the networking subsystem. | |
bool | shutdown () override |
Stops the networking subsystem. | |
bool | isInitialized () const override |
Gets the state of the networking subsystem. | |
bool | reinitialize () override |
Stop and then initialize the networking subsystem. | |
void | disconnect (const std::string &) override |
Disconnects the initialized networking subsystem. | |
bool | isServer () const override |
Returns whether the initialized network subsystem should be the server instance. | |
void | Update () override |
Handles connection state changes and forwards messages to the application. | |
pge_network::PgeIServerClient * | getServerClientInstance () override |
Returns access to the initialized networking subsystem. | |
pge_network::PgeIClient & | getClient () override |
Returns the client instance. | |
pge_network::PgeIServer & | getServer () override |
Returns the server instance. | |
void | WriteList () const override |
Writes statistics to console. | |
![]() |
Private Attributes | |
PGEcfgProfiles & | m_cfgProfiles |
pge_network::PgeIServerClient * | m_pServerClient {nullptr} |
pge_network::PgeClientStub | m_client |
pge_network::PgeServerStub | m_server |
pge_network::PgeIClient & | m_iclient { m_client } |
pge_network::PgeIServer & | m_iserver { m_server } |
bool | m_bServer {false} |
Additional Inherited Members | |
![]() | |
static const char * | getLoggerModuleName () |
Returns the logger module name of this class. | |
![]() | |
static constexpr char * | CVAR_NET_SERVER = "net_server" |
|
inline |
Definition at line 35 of file PgeNetworkStub.h.
|
delete |
|
delete |
|
inlinevirtual |
Definition at line 48 of file PgeNetworkStub.h.
|
inlineoverridevirtual |
Disconnects the initialized networking subsystem.
Implements pge_network::PgeINetwork.
Definition at line 100 of file PgeNetworkStub.h.
|
inlineoverridevirtual |
Returns the client instance.
Implements pge_network::PgeINetwork.
Definition at line 110 of file PgeNetworkStub.h.
|
inlineoverridevirtual |
Returns the server instance.
Implements pge_network::PgeINetwork.
Definition at line 111 of file PgeNetworkStub.h.
|
inlineoverridevirtual |
Returns access to the initialized networking subsystem.
Implements pge_network::PgeINetwork.
Definition at line 109 of file PgeNetworkStub.h.
|
inlineoverridevirtual |
Initialize the networking subsystem.
Implements pge_network::PgeINetwork.
Definition at line 53 of file PgeNetworkStub.h.
|
inlineoverridevirtual |
Gets the state of the networking subsystem.
Implements pge_network::PgeINetwork.
Definition at line 86 of file PgeNetworkStub.h.
|
inlineoverridevirtual |
Returns whether the initialized network subsystem should be the server instance.
Implements pge_network::PgeINetwork.
Definition at line 102 of file PgeNetworkStub.h.
|
delete |
|
delete |
|
inlineoverridevirtual |
Stop and then initialize the networking subsystem.
Implements pge_network::PgeINetwork.
Definition at line 91 of file PgeNetworkStub.h.
|
inlineoverridevirtual |
Stops the networking subsystem.
Implements pge_network::PgeINetwork.
Definition at line 76 of file PgeNetworkStub.h.
|
inlineoverridevirtual |
Handles connection state changes and forwards messages to the application.
Implements pge_network::PgeINetwork.
Definition at line 107 of file PgeNetworkStub.h.
|
inlineoverridevirtual |
Writes statistics to console.
Implements pge_network::PgeINetwork.
Definition at line 113 of file PgeNetworkStub.h.
|
private |
Definition at line 123 of file PgeNetworkStub.h.
|
private |
Definition at line 117 of file PgeNetworkStub.h.
|
private |
Definition at line 119 of file PgeNetworkStub.h.
|
private |
Definition at line 121 of file PgeNetworkStub.h.
|
private |
Definition at line 122 of file PgeNetworkStub.h.
|
private |
Definition at line 118 of file PgeNetworkStub.h.
|
private |
Definition at line 120 of file PgeNetworkStub.h.