TCP_STATE Enumeration

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
TCP_STATE Enumeration
C
typedef enum {
  TCP_GET_DNS_MODULE,
  TCP_DNS_RESOLVE,
  TCP_GATEWAY_SEND_ARP,
  TCP_GATEWAY_GET_ARP,
  TCP_LISTEN,
  TCP_SYN_SENT,
  TCP_SYN_RECEIVED,
  TCP_ESTABLISHED,
  TCP_FIN_WAIT_1,
  TCP_FIN_WAIT_2,
  TCP_CLOSING,
  TCP_CLOSE_WAIT,
  TCP_LAST_ACK,
  TCP_CLOSED,
  TCP_CLOSED_BUT_RESERVED
} TCP_STATE;
Description

TCP States as defined by RFC 793

Members
Members 
Description 
TCP_GET_DNS_MODULE 
Special state for TCP client mode sockets 
TCP_DNS_RESOLVE 
Special state for TCP client mode sockets 
TCP_GATEWAY_SEND_ARP 
Special state for TCP client mode sockets 
TCP_GATEWAY_GET_ARP 
Special state for TCP client mode sockets 
TCP_LISTEN 
Socket is listening for connections 
TCP_SYN_SENT 
A SYN has been sent, awaiting an SYN+ACK 
TCP_SYN_RECEIVED 
A SYN has been received, awaiting an ACK 
TCP_ESTABLISHED 
Socket is connected and connection is established 
TCP_FIN_WAIT_1 
FIN WAIT state 1 
TCP_FIN_WAIT_2 
FIN WAIT state 2 
TCP_CLOSING 
Socket is closing TCP_TIME_WAIT, state is not implemented 
TCP_CLOSE_WAIT 
Waiting to close the socket 
TCP_LAST_ACK 
The final ACK has been sent 
TCP_CLOSED 
Socket is idle and unallocated 
TCP_CLOSED_BUT_RESERVED 
Special state for TCP client mode sockets. Socket is idle, but still allocated pending application closure of the handle. 
Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.