◆ ~TrafficStats()
◆ getPackageHeaderSize()
int getPackageHeaderSize |
( |
void |
| ) |
const |
- Returns
- the byte-size of per-package headers.
◆ getReliableCommandCount()
int getReliableCommandCount |
( |
void |
| ) |
const |
- Returns
- the reliable commands that are created/received by this client, ignoring repeats (the out command count can be higher that this due to repeats).
◆ getUnreliableCommandCount()
int getUnreliableCommandCount |
( |
void |
| ) |
const |
- Returns
- the unreliable commands that are created/received by this client.
◆ getFragmentCommandCount()
int getFragmentCommandCount |
( |
void |
| ) |
const |
- Returns
- the fragments for fragmented commands that are created/received by this client.
◆ getControlCommandCount()
int getControlCommandCount |
( |
void |
| ) |
const |
- Returns
- the control commands that are created/received by this client under the hood to administer the connection.
◆ getTotalPacketCount()
int getTotalPacketCount |
( |
void |
| ) |
const |
- Returns
- the overall packets that are in created/received by this client.
◆ getTotalCommandsInPackets()
int getTotalCommandsInPackets |
( |
void |
| ) |
const |
- Returns
- the overall commands that are created/received by this client. For fragmented commands each fragment counts separately.
◆ getReliableCommandBytes()
int getReliableCommandBytes |
( |
void |
| ) |
const |
- Returns
- the bytes of the reliable commands that are created/received by this client, ignoring repeats (the count of actually outgoing bytes can be higher than this due to repeats).
◆ getUnreliableCommandBytes()
int getUnreliableCommandBytes |
( |
void |
| ) |
const |
- Returns
- the bytes of the unreliable commands that are created/received by this client.
◆ getFragmentCommandBytes()
int getFragmentCommandBytes |
( |
void |
| ) |
const |
- Returns
- the bytes of the fragments for fragmented commands that are created/received by this client.
◆ getControlCommandBytes()
int getControlCommandBytes |
( |
void |
| ) |
const |
- Returns
- the bytes of the control commands that are created/received by this client under the hood to administer the connection.
◆ getTotalCommandCount()
int getTotalCommandCount |
( |
void |
| ) |
const |
◆ getTotalCommandBytes()
int getTotalCommandBytes |
( |
void |
| ) |
const |
◆ getTotalPacketBytes()
int getTotalPacketBytes |
( |
void |
| ) |
const |
- Returns
- the count of bytes as traffic, excluding UDP/TCP headers (42 bytes / x bytes).
◆ getTimestampOfLastAck()
int getTimestampOfLastAck |
( |
void |
| ) |
const |
- Returns
- the timestamp of the last incoming ACK that has been read (every PhotonPeer::getTimePingInterval() milliseconds this client sends a PING which must be ACKd by the server).
◆ getTimestampOfLastReliableCommand()
int getTimestampOfLastReliableCommand |
( |
void |
| ) |
const |
- Returns
- the timestamp of the last incoming reliable command (every second we expect a PING).
◆ toString() [1/3]
- Parameters
-
retStr | reference to a string, to store the return-value in; the information, which is generated by this function, will be attached at the end of any eventually existing previous content of the string |
withTypes | set to true, to include type information in the generated string |
- Returns
- a JString representation of the instance and its contents for debugging purposes.
Implements ToString.
◆ toString() [2/3]
- Parameters
-
retStr | reference to a string, to store the return-value in; the information, which is generated by this function, will be attached at the end of any eventually existing previous content of the string |
withTypes | set to true, to include type information in the generated string |
- Returns
- a JString representation of the instance and its contents for debugging purposes.
◆ toString() [3/3]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Parameters
-
withTypes | set to true, to include type information in the generated string |
- Returns
- a JString representation of the instance and its contents for debugging purposes.
- See also
- JString