tcpsm.c File Reference

Go to the source code of this file.

Defines

#define NUT_THREAD_TCPSMSTACK   384
#define TCP_RETRIES_MAX   7

Functions

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.
void NutTcpSm (void *arg)
 TCP state machine thread.
void NutTcpStateMachine (NETBUF *nb)
 Process incoming TCP segments.
int NutTcpInitStateMachine (void)
 Start TCP state machine.
int NutTcpAbortSocket (TCPSOCKET *sock, uint16_t last_error)
 Closes socket with error.

Variables

TCPSOCKET * tcpSocketList
HANDLE tcp_in_rdy
NETBUF *volatile tcp_in_nbq


Define Documentation

#define NUT_THREAD_TCPSMSTACK   384

Definition at line 267 of file tcpsm.c.

Referenced by NutTcpInitStateMachine().

#define TCP_RETRIES_MAX   7

Definition at line 272 of file tcpsm.c.

Referenced by NutTcpStateRetranTimeout().


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