Click or drag to resize

ClientStats Class

Statistics for each connected client
Inheritance Hierarchy
SystemObject
  Crosser.Common.Server.ProtocolClientStats

Namespace:  Crosser.Common.Server.Protocol
Assembly:  Crosser.Common (in Crosser.Common.dll) Version: 0.0.4
Syntax
C#
public class ClientStats

The ClientStats type exposes the following members.

Constructors
  NameDescription
Public methodClientStats
Initializes a new instance of the ClientStats class
Top
Properties
  NameDescription
Public propertyConnected
DateTime when the client connected
Public propertyFailedPings
Number of failed pings since last successful ping
Public propertyInteractive
Is the client in Interactive mode
Public propertyIP
Client IP address
Public propertyLanguage
The language the client was written in
Public propertyLastPing
Last ping sent to the client
Public propertyLastPong
Last pong received from the client
Public propertyLatency
The measured latency between LastPing and LastPong
Public propertyVersion
Version of the client software
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIncreaseIn
Increase the number of bytes and messages received from this client
Public methodIncreaseOut
Increase the number of bytes and messages sent to this client
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetPendingBytes
Update the number of pending bytes for the connection
Public methodSetPendingMessages
Update the number of pending messages for the client
Public methodToString
Build the current client statistics as a JSON string
(Overrides ObjectToString.)
Top
See Also