The primary interface to server networking functionality.
Definition at line 25 of file PgeIServer.h.
|
virtual bool | startListening (const std::string &sAppVersion="")=0 |
| Starts listening to incoming PgeClient connections.
|
|
virtual void | sendToAllClientsExcept (const pge_network::PgePacket &pkt, const pge_network::PgeNetworkConnectionHandle &exceptConnHandle=pge_network::ServerConnHandle)=0 |
| Sends the given packet to all client instances except the optionally specified client.
|
|
virtual void | sendToAll (const pge_network::PgePacket &pkt)=0 |
| Sends the given packet to all known network instances, including the server itself (self).
|
|
virtual void | setDebugNickname (const pge_network::PgeNetworkConnectionHandle &connHandle, const std::string &sNickname)=0 |
| Sets a debug helper name associated to the given connection handle.
|
|
virtual int | getPing (const pge_network::PgeNetworkConnectionHandle &connHandle, bool bForceUpdate)=0 |
|
virtual float | getQualityLocal (const pge_network::PgeNetworkConnectionHandle &connHandle, bool bForceUpdate)=0 |
|
virtual float | getQualityRemote (const pge_network::PgeNetworkConnectionHandle &connHandle, bool bForceUpdate)=0 |
|
virtual float | getRxByteRate (const pge_network::PgeNetworkConnectionHandle &connHandle, bool bForceUpdate)=0 |
|
virtual float | getTxByteRate (const pge_network::PgeNetworkConnectionHandle &connHandle, bool bForceUpdate)=0 |
|
virtual int64_t | getPendingUnreliableBytes (const pge_network::PgeNetworkConnectionHandle &connHandle, bool bForceUpdate)=0 |
|
virtual int64_t | getPendingReliableBytes (const pge_network::PgeNetworkConnectionHandle &connHandle, bool bForceUpdate)=0 |
|
virtual int64_t | getSentButUnAckedReliableBytes (const pge_network::PgeNetworkConnectionHandle &connHandle, bool bForceUpdate)=0 |
|
virtual int64_t | getInternalQueueTimeUSecs (const pge_network::PgeNetworkConnectionHandle &connHandle, bool bForceUpdate)=0 |
|
virtual std::string | getDetailedConnectionStatus (const pge_network::PgeNetworkConnectionHandle &connHandle) const =0 |
|
virtual bool | initialize ()=0 |
| Initialize the network instance.
|
|
virtual bool | shutdown ()=0 |
| This stops the network instance.
|
|
virtual bool | isInitialized () const =0 |
| Gets the state of the network instance.
|
|
virtual void | disconnect (const std::string &sExtraDebugText="")=0 |
| Terminates the active connection of the network instance.
|
|
virtual void | Update ()=0 |
|
virtual bool | pollIncomingMessages ()=0 |
| Moves incoming packets from the underlying network layer to PGE network layer as PgePackets.
|
|
virtual void | pollConnectionStateChanges ()=0 |
|
virtual std::size_t | getPacketQueueSize () const =0 |
|
virtual pge_network::PgePacket | popFrontPacket () noexcept(false)=0 |
|
virtual std::set< pge_network::PgePktId > & | getAllowListedPgeMessages ()=0 |
|
virtual std::set< pge_network::MsgApp::TMsgId > & | getAllowListedAppMessages ()=0 |
|
virtual void | send (const pge_network::PgePacket &pkt, const pge_network::PgeNetworkConnectionHandle &connHandle=pge_network::ServerConnHandle)=0 |
| Sends the given packet to the network instance specified.
|
|
virtual uint32_t | getRxPacketCount () const =0 |
|
virtual uint32_t | getTxPacketCount () const =0 |
|
virtual uint32_t | getInjectPacketCount () const =0 |
|
virtual uint32_t | getRxPacketPerSecondCount () const =0 |
|
virtual uint32_t | getTxPacketPerSecondCount () const =0 |
|
virtual uint32_t | getInjectPacketPerSecondCount () const =0 |
|
virtual const std::map< pge_network::MsgApp::TMsgId, uint32_t > & | getRxMsgCount () const =0 |
|
virtual const std::map< pge_network::MsgApp::TMsgId, uint32_t > & | getTxMsgCount () const =0 |
|
virtual const std::map< pge_network::MsgApp::TMsgId, uint32_t > & | getInjectMsgCount () const =0 |
|
virtual std::map< pge_network::MsgApp::TMsgId, std::string > & | getMsgAppId2StringMap ()=0 |
|
virtual uint32_t | getRxByteCount () const =0 |
|
virtual uint32_t | getTxByteCount () const =0 |
|
virtual uint32_t | getInjectByteCount () const =0 |
|
virtual void | WriteList () const =0 |
| Writes statistics to console.
|
|