MIB_TCPSTATS

The MIB_TCPSTATS structure contains statistics for the TCP protocol running on the local computer.

typedef struct _MIB_TCPSTATS {
  DWORD   dwRtoAlgorithm;    // time-out algorithm 
  DWORD   dwRtoMin;          // minimum time-out 
  DWORD   dwRtoMax;          // maximum time-out 
  DWORD   dwMaxConn;         // maximum connections 
  DWORD   dwActiveOpens;     // active opens 
  DWORD   dwPassiveOpens;    // passive opens 
  DWORD   dwAttemptFails;    // failed attempts 
  DWORD   dwEstabResets;     // established connections reset
  DWORD   dwCurrEstab;       // established connections
  DWORD   dwInSegs;          // segments received
  DWORD   dwOutSegs;         // segment sent
  DWORD   dwRetransSegs;     // segments retransmitted 
  DWORD   dwInErrs;          // incoming errors 
  DWORD   dwOutRsts;         // outgoing resets 
  DWORD   dwNumConns;        // cumulative connections 
} MIB_TCPSTATS, *PMIB_TCPSTATS;

Members

dwRtoAlgorithm
Specifies the retransmission time-out (RTO) algorithm in use. This member can be one of the following values.
Value Description
MIB_TCP_RTO_CONSTANT Constant Time-out
MIB_TCP_RTO_RSRE MIL-STD-1778 Appendix B
MIB_TCP_RTO_VANJ Van Jacobson's Algorithm
MIB_TCP_RTO_OTHER Other

dwRtoMin
Specifies the minimum retransmission time-out value in milliseconds.
dwRtoMax
Specifies the maximum retransmission time-out value in milliseconds.
dwMaxConn
Specifies the maximum number of connections. If this member is -1, the maximum number of connections is dynamic.
dwActiveOpens
Specifies the number of active opens. In an active open, the client is initiating a connection with the server.
dwPassiveOpens
Specifies the number of passive opens. In a passive open, the server is listening for a connection request from a client.
dwAttemptFails
Specifies the number of failed connection attempts.
dwEstabResets
Specifies the number of established connections that have been reset.
dwCurrEstab
Specifies the number of currently established connections.
dwInSegs
Specifies the number of segments received.
dwOutSegs
Specifies the number of segments transmitted. This number does not include retransmitted segments.
dwRetransSegs
Specifies the number of segments retransmitted.
dwInErrs
Specifies the number of errors received.
dwOutRsts
Specifies the number of segments transmitted with the reset flag set.
dwNumConns
Specifies the cumulative number of connections.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 SP4 or later.
  Windows 95/98: Requires Windows 98.
  Header: Declared in Iprtrmib.h.

See Also

GetTcpStatistics