#include <dolphin/ip.h>
#define TCP_STATE_CLOSED 0
#define TCP_STATE_LISTEN 1
#define TCP_STATE_SYN_SENT 2
#define TCP_STATE_SYN_RECEIVED 3
#define TCP_STATE_ESTABLISHED 4
#define TCP_STATE_FINWAIT1 5
#define TCP_STATE_FINWAIT2 6
#define TCP_STATE_CLOSE_WAIT 7
#define TCP_STATE_CLOSING 8
#define TCP_STATE_LAST_ACK 9
#define TCP_STATE_TIME_WAIT 10
s32 TCPGetStatus ( TCPInfo* info );
TCPGetStatus() returns the current state of info.
info |
Pointer to TCPInfo to query the current state. |
One of TPC_STATE_*, or IP_ERR_INVALID if info is
not a valid TCPInfo.