#include <cfg/os.h>
#include <cfg/tcp.h>
#include <sys/thread.h>
#include <sys/heap.h>
#include <sys/event.h>
#include <sys/timer.h>
#include <errno.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <net/route.h>
#include <sys/socket.h>
#include <netinet/tcputil.h>
#include <netinet/tcp.h>
#include <net/netdebug.h>
Go to the source code of this file.
Defines | |
#define | NUT_THREAD_TCPSMSTACK 384 |
#define | TCP_RETRIES_MAX 7 |
#define | TCP_COLLECT_INADV 8 |
#define | TCP_COLLECT_SLIMIT 256 |
#define | TCP_BACKLOG_MAX 8 |
#define | TCP_BACKLOG_TIME 5 |
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 NUT_THREAD_TCPSMSTACK 384 |
Definition at line 134 of file tcpsm.c.
Referenced by NutTcpInitStateMachine().
#define TCP_RETRIES_MAX 7 |
Definition at line 139 of file tcpsm.c.
Referenced by NutTcpStateRetranTimeout().