PRooFPS-dd Dev Doc 1.0
PRooFPS-dd Developer Documentation
Loading...
Searching...
No Matches
proofps_dd::Networking Class Reference

Detailed Description

Definition at line 20 of file Networking.h.

#include <Networking.h>

+ Inheritance diagram for proofps_dd::Networking:

Public Member Functions

 Networking (PGE &pge, proofps_dd::Durations &durations)
 
 Networking (const Networking &)=delete
 
Networkingoperator= (const Networking &)=delete
 
 Networking (Networking &&)=delete
 
Networking && operator= (Networking &&)=delete
 
CConsole & getConsole () const
 
bool isMyConnection (const pge_network::PgeNetworkConnectionHandle &connHandleServerSide) const
 
const pge_network::PgeNetworkConnectionHandle & getMyServerSideConnectionHandle () const
 
bool reinitializeNetworking ()
 
bool isServer () const
 

Static Public Member Functions

static const char * getLoggerModuleName ()
 

Static Public Attributes

static constexpr char * szCVarClServerIp = "cl_server_ip"
 

Protected Member Functions

void allowListAppMessages ()
 

Protected Attributes

pge_network::PgeNetworkConnectionHandle m_nServerSideConnectionHandle
 Server-side connection handle received from server in PgePktUserConnected (server instance also receives this from itself).
 

Private Attributes

PGE & m_pge
 
proofps_dd::Durationsm_durations
 

Constructor & Destructor Documentation

◆ Networking() [1/3]

proofps_dd::Networking::Networking ( PGE & pge,
proofps_dd::Durations & durations )

Definition at line 22 of file Networking.cpp.

◆ Networking() [2/3]

proofps_dd::Networking::Networking ( const Networking & )
delete

◆ Networking() [3/3]

proofps_dd::Networking::Networking ( Networking && )
delete

Member Function Documentation

◆ allowListAppMessages()

void proofps_dd::Networking::allowListAppMessages ( )
protected

Definition at line 96 of file Networking.cpp.

◆ getConsole()

CConsole & proofps_dd::Networking::getConsole ( ) const

Definition at line 44 of file Networking.cpp.

◆ getLoggerModuleName()

const char * proofps_dd::Networking::getLoggerModuleName ( )
static

Definition at line 39 of file Networking.cpp.

◆ getMyServerSideConnectionHandle()

const pge_network::PgeNetworkConnectionHandle & proofps_dd::Networking::getMyServerSideConnectionHandle ( ) const

Definition at line 87 of file Networking.cpp.

◆ isMyConnection()

bool proofps_dd::Networking::isMyConnection ( const pge_network::PgeNetworkConnectionHandle & connHandleServerSide) const

Definition at line 49 of file Networking.cpp.

◆ isServer()

bool proofps_dd::Networking::isServer ( ) const

Definition at line 82 of file Networking.cpp.

◆ operator=() [1/2]

Networking & proofps_dd::Networking::operator= ( const Networking & )
delete

◆ operator=() [2/2]

Networking && proofps_dd::Networking::operator= ( Networking && )
delete

◆ reinitializeNetworking()

bool proofps_dd::Networking::reinitializeNetworking ( )

Definition at line 58 of file Networking.cpp.

Member Data Documentation

◆ m_durations

proofps_dd::Durations& proofps_dd::Networking::m_durations
private

Definition at line 60 of file Networking.h.

◆ m_nServerSideConnectionHandle

pge_network::PgeNetworkConnectionHandle proofps_dd::Networking::m_nServerSideConnectionHandle
protected

Server-side connection handle received from server in PgePktUserConnected (server instance also receives this from itself).

Server doesn't have a connection to itself, so it uses default 0 (invalid) handle.

Definition at line 48 of file Networking.h.

◆ m_pge

PGE& proofps_dd::Networking::m_pge
private

Definition at line 59 of file Networking.h.

◆ szCVarClServerIp

char* proofps_dd::Networking::szCVarClServerIp = "cl_server_ip"
staticconstexpr

Definition at line 23 of file Networking.h.


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