Debugging
Show TCP and UDP sockets
You can show all informations in the Logpad.
Enable stats out of Editor
Add the define symbol WONDERLAND_SOCKETSTATS
to build with Stats events.
SocketStats object is a member of
Peer
andNetwork
.
peer.SocketStats.GetSocketCreationTime();
peer.SocketStats.GetTotalInMessageNumber();
peer.SocketStats.GetTotalOutMessageNumber();
peer.SocketStats.GetTotalInMessageSize();
peer.SocketStats.GetTotalOutMessageSize();
peer.SocketStats.GetTotalAverageInMessageNumber();
peer.SocketStats.GetTotalAverageOutMessageNumber();
peer.SocketStats.GetTotalAverageInMessageSize();
peer.SocketStats.GetTotalAverageOutMessageSize();
peer.SocketStats.GetCurrentPeerNumber();
peer.SocketStats.GetInMessageNumber(since = -1f);
peer.SocketStats.GetOutMessageNumber(since = -1f);
peer.SocketStats.GetInMessageSize(since = -1f);
peer.SocketStats.GetOutMessageSize(since = -1f);
peer.SocketStats.GetAverageInMessageNumber();
peer.SocketStats.GetAverageOutMessageNumber();
peer.SocketStats.GetAverageInMessageSize();
peer.SocketStats.GetAverageOutMessageSize();
peer.SocketStats.GetAveragePeerNumber();
peer.SocketStats.GetAverageSizePerInMessage();
peer.SocketStats.GetAverageSizePerOutMessage();