tcp_fsm.h File Reference


Detailed Description

TCP state machine definitions.


Defines

#define TCP_NSTATES
 Total number of possible states.
#define TCPS_CLOSED
 closed
#define TCPS_LISTEN
 listening for connection
#define TCPS_SYN_SENT
 active, have sent syn
#define TCPS_SYN_RECEIVED
 have sent and received syn
#define TCPS_ESTABLISHED
 established
#define TCPS_CLOSE_WAIT
 rcvd fin, waiting for close
#define TCPS_FIN_WAIT_1
 have closed, sent fin
#define TCPS_CLOSING
 closed xchd FIN; await FIN ACK
#define TCPS_LAST_ACK
 had fin and close; await FIN ACK
#define TCPS_FIN_WAIT_2
 have closed, fin is acked
#define TCPS_TIME_WAIT
 in 2*msl quiet wait after close

Functions

void NutTcpStateMachine (NETBUF *nb)
 Process incoming TCP segments.
int NutTcpInitStateMachine (void)
 Start TCP state machine.
int NutTcpStatePassiveOpenEvent (TCPSOCKET *sock)
 Initiated by the application.
int NutTcpStateActiveOpenEvent (TCPSOCKET *sock)
 Initiated by the application.
int NutTcpStateCloseEvent (TCPSOCKET *sock)
 Socket close by application.
int NutTcpStateWindowEvent (TCPSOCKET *sock)
 Initiated by the application.
int NutTcpStateRetranTimeout (TCPSOCKET *sock)
 Retransmit a segment after ACK timeout.


© 2000-2006 by egnite Software GmbH - visit http://www.ethernut.de/