The MIB_TCPSTATS structure contains statistics for the TCP protocol running on the local computer. This structure is used in MIB_OPAQUE_INFO (section 2.2.1.2.52) structure.
typedef struct _MIB_TCPSTATS {
union {
DWORD dwRtoAlgorithm;
TCP_RTO_ALGORITHM RtoAlgorithm;
};
DWORD dwRtoMin;
DWORD dwRtoMax;
DWORD dwMaxConn;
DWORD dwActiveOpens;
DWORD dwPassiveOpens;
DWORD dwAttemptFails;
DWORD dwEstabResets;
DWORD dwCurrEstab;
DWORD dwInSegs;
DWORD dwOutSegs;
DWORD dwRetransSegs;
DWORD dwInErrs;
DWORD dwOutRsts;
DWORD dwNumConns;
} MIB_TCPSTATS,
*PMIB_TCPSTATS;
dwRtoAlgorithm: The retransmission time-out (RTO) algorithm in use. This member can be one of the enum values in TCP_RTO_ALGORITHM (section 2.2.1.1.12).
RtoAlgorithm: The RTO algorithm in use.<38>
dwRtoMin: The minimum RTO value in milliseconds.
dwRtoMax: The maximum RTO value in milliseconds.
dwMaxConn: The maximum number of connections. If this member is -1, the maximum number of connections is variable.
dwActiveOpens: The number of active open connections. In an active open, the client is initiating a connection with the server.
dwPassiveOpens: The number of passive open connections. In a passive open, the server is listening for a connection request from a client.
dwAttemptFails: The number of failed connection attempts.
dwEstabResets: The number of established connections that were reset.
dwCurrEstab: The number of currently established connections.
dwInSegs: The number of segments received.
dwOutSegs: The number of segments transmitted. This number does not include retransmitted segments.
dwRetransSegs: The number of segments retransmitted.
dwInErrs: The number of errors received.
dwOutRsts: The number of segments transmitted with the reset flag set.
dwNumConns: The number of connections that are currently present in the system. This total number includes connections in all states except listening connections.