Proud::CNetServerStats Class Reference

server status statistics information More...

Inheritance diagram for Proud::CNetServerStats:

Public Member Functions

virtual PROUDSRV_API String ToString () const
 
- Public Member Functions inherited from Proud::CNetCoreStats
uint64_t GetTotalReceiveBytes ()
 
uint64_t GetTotalSendCount ()
 
uint64_t GetTotalReceiveCount ()
 
uint64_t GetTotalSendBytes ()
 
PROUD_API CNetCoreStats ()
 

Public Attributes

uint32_t m_p2pConnectionPairCount
 
uint32_t m_p2pDirectConnectionPairCount
 
uint32_t m_clientCount
 
uint32_t m_realUdpEnabledClientCount
 
int m_occupiedUdpPortCount
 
- Public Attributes inherited from Proud::CNetCoreStats
uint64_t m_totalTcpReceiveCount
 
uint64_t m_totalTcpReceiveBytes
 
uint64_t m_totalTcpSendCount
 
uint64_t m_totalTcpSendBytes
 
uint64_t m_totalUdpReceiveCount
 
uint64_t m_totalUdpReceiveBytes
 
uint64_t m_totalUdpSendCount
 
uint64_t m_totalUdpSendBytes
 
uint64_t m_totalWebSocketReceiveCount
 
uint64_t m_totalWebSocketReceiveBytes
 
uint64_t m_totalWebSocketSendCount
 
uint64_t m_totalWebSocketSendBytes
 

Detailed Description

server status statistics information

  • To check performance

Member Function Documentation

virtual PROUDSRV_API String Proud::CNetServerStats::ToString ( ) const
virtual

Returns a string that represents this object.

Implements Proud::CNetCoreStats.

Member Data Documentation

uint32_t Proud::CNetServerStats::m_clientCount

Number of all clients

int Proud::CNetServerStats::m_occupiedUdpPortCount

Number of UDP ports that are in use

  • This value is meaningless if ServerUdpAssignMode_Static is in use.
  • If ServerUdpAssignMode_PerClient is in use then this value returns the number of ports that are currently in use. In general, this is same as the numer of clients connnected to server but you can use this as diagnosis.
uint32_t Proud::CNetServerStats::m_p2pConnectionPairCount

Number of all direct/indirect P2P connection among clients

  • However, this does not include the P2P connections that are not even attempted yet since there has been no P2P communication attempted.
uint32_t Proud::CNetServerStats::m_p2pDirectConnectionPairCount

Number of all direct P2P connection among clients

  • However, this does not include the P2P connections that are not even attempted yet since there has been no P2P communication attempted.
uint32_t Proud::CNetServerStats::m_realUdpEnabledClientCount

Number of clients that sustain UDP communications(not doing TCP fallback)