Partager via


MIB_TCPSTATS (Compact 2013)

3/26/2014

This structure contains statistics for the TCP protocol running on the local device.

Syntax

typedef struct _MIB_TCPSTATS {
  DWORD dwRtoAlgorithm; 
  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;

Members

  • dwRtoAlgorithm
    The retransmission time-out algorithm that is being used. The following table shows the possible values. This member can be one of these 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
    The minimum retransmission time-out value in milliseconds.
  • dwRtoMax
    The maximum retransmission time-out value in milliseconds.
  • dwMaxConn
    The maximum number of connections. If this member is -1, the maximum number of connections is dynamic.
  • dwActiveOpens
    The number of active opens. In an active open, the client is initiating a connection with the server.
  • dwPassiveOpens
    The number of passive opens. 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 have been reset.
  • dwCurrEstab
    The number of currently established connections.
  • dwInSegs
    The number of segments received or transmitted.
  • 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 cumulative number of connections.

Remarks

The GetTcpStatistics function returns a pointer to a MIB_TCPSTATS structure.

The organization of header files has changed. This structure is defined in the Tcpmib.h header file instead of in the Iprtrmib.h header file. Be aware that the Tcpmib.h header file is automatically included in Iprtrmib.h, which is automatically included in the Iphlpapi.h header file. The Tcpmib.h and Iprtrmib.h header files should never be used directly.

Requirements

Header

iprtrmib.h,
ws2def.h,
ws2ipdef.h

See Also

Reference

MIB Structures
IP Helper Structures
GetTcpStatistics
GetUdpStatistics
MIB_UDPSTATS