MIB_TCPROW

The MIB_TCPROW structure contains information for a TCP connection.

typedef struct _MIB_TCPROW {
  DWORD   dwState;        // state of the connection
  DWORD   dwLocalAddr;    // address on local computer
  DWORD   dwLocalPort;    // port number on local computer
  DWORD   dwRemoteAddr;   // address on remote computer
  DWORD   dwRemotePort;   // port number on remote computer
} MIB_TCPROW, *PMIB_TCPROW;

Members

dwState
Specifies the state of the TCP connection. This member can have one of the following values.
Value Description
MIB_TCP_STATE_CLOSED To be determined.
MIB_TCP_STATE_LISTEN To be determined.
MIB_TCP_STATE_SYN_SENT To be determined.
MIB_TCP_STATE_SYN_RCVD To be determined.
MIB_TCP_STATE_ESTAB To be determined.
MIB_TCP_STATE_FIN_WAIT1 To be determined.
MIB_TCP_STATE_FIN_WAIT2 To be determined.
MIB_TCP_STATE_CLOSE_WAIT To be determined.
MIB_TCP_STATE_CLOSING To be determined.
MIB_TCP_STATE_LAST_ACK To be determined.
MIB_TCP_STATE_TIME_WAIT To be determined.
MIB_TCP_STATE_DELETE_TCB Transmission Control Block (TCB) deleted.

dwLocalAddr
Specifies the address for the connection on the local computer.
dwLocalPort
Specifies the port number for the connection on the local computer.
dwRemoteAddr
Specifies the address for the connection on the remote computer.
dwRemotePort
Specifies the port number the connection on the remote computer.

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

MIB_TCPTABLE, SetTcpEntry