On this page

C

DTLSEndpoint.Stats

History

A view of the collected statistics for an endpoint.

P

endpointStats.createdAt

History
Type:bigint
A timestamp indicating when the endpoint was created. Read only.
P

endpointStats.destroyedAt

History
Type:bigint
A timestamp indicating when the endpoint was destroyed. Read only.
P

endpointStats.bytesReceived

History
Type:bigint
The total number of bytes received by this endpoint. Read only.
P

endpointStats.bytesSent

History
Type:bigint
The total number of bytes sent by this endpoint. Read only.
P

endpointStats.packetsReceived

History
Type:bigint
The total number of UDP packets received by this endpoint. Read only.
P

endpointStats.packetsSent

History
Type:bigint
The total number of UDP packets sent by this endpoint. Read only.
P

endpointStats.serverSessions

History
Type:bigint
The total number of peer-initiated sessions accepted by this endpoint. Read only.
P

endpointStats.clientSessions

History
Type:bigint
The total number of sessions initiated by this endpoint. Read only.
P

endpointStats.serverBusyCount

History
Type:bigint
The total number of incoming connections rejected because the endpoint was marked busy. Read only.
P

endpointStats.serverRejectedCount

History
Type:bigint
The number of datagrams discarded before a handshake was attempted because they could not be a ClientHello. Read only.

Datagrams arriving at a listening endpoint that do not match an existing session are screened for the shape of a DTLS ClientHello record before any state is allocated for them. A steadily rising value indicates junk or scan traffic rather than failing clients, which are counted as sessions that never complete.

P

endpointStats.serverRefusedCount

History
Type:bigint
The number of otherwise valid handshake attempts refused because the endpoint was at maxSessions or the peer was at maxSessionsPerHost. Read only.
P

endpointStats.isConnected

History
Type:boolean

true if the stats object is still connected to the underlying endpoint. Once the endpoint is destroyed, the stats become a stale snapshot.