TCP stats
Represents statistics related to TCP connections, including the number of connections, the segments sent and received, and error counts
Properties
connectionsEstablished
The number of established TCP connections
val connectionsEstablished: Long = statsSample.connectionsEstablished
println(connectionsEstablished) // e.g. 1824
connectionsActive
The number of active (currently open) TCP connections
connectionsPassive
The number of passive (waiting for incoming requests) TCP connections
val connectionsPassive: Long = statsSample.connectionsPassive
println(connectionsPassive) // e.g. 95
connectionFailures
The number of failed attempts to establish a TCP connection
val connectionFailures: Long = statsSample.connectionFailures
println(connectionFailures) // e.g. 14
connectionsReset
The number of TCP connections that have been reset
segmentsSent
The number of TCP segments sent
segmentsReceived
The number of TCP segments received
val segmentsReceived: Long = statsSample.segmentsReceived
println(segmentsReceived) // e.g. 17345210
segmentsRetransmitted
The number of TCP segments that have been retransmitted
val segmentsRetransmitted: Long = statsSample.segmentsRetransmitted
println(segmentsRetransmitted) // e.g. 1250
inErrors
The number of incoming errors (e.g., malformed packets)
outResets
The number of outgoing reset signals (e.g., RST flags)