Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

netinet/tcp_fsm.h File Reference

TCP state machine definitions. More...


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 send 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 (TCPSOCKET *sock, NETBUF *nb)
 Process TCP incoming segments. More...

int NutTcpStatePassiveOpenEvent (TCPSOCKET *sock)
 Initiated by the application. More...

int NutTcpStateActiveOpenEvent (TCPSOCKET *sock)
 Initiated by the application. More...

int NutTcpStateCloseEvent (TCPSOCKET *sock)
 Changes state to TCPS_FIN_WAIT_1. More...

int NutTcpStateAbortEvent (TCPSOCKET *sock)
 Initiated by the application. More...

void NutTcpStateUserTimeout (TCPSOCKET *sock)
 Signal user timeout. More...

void NutTcpStateRetranTimeout (TCPSOCKET *sock)
 Retransmit a segment after ACK timeout. More...

void NutTcpStateTimeWaitTimeout (TCPSOCKET *sock)
 Signal timewait timeout. More...


Detailed Description

TCP state machine definitions.


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