Functions | |
void | NutTcpInput (NETBUF *nb) |
Process incoming TCP segments from IP layer. More... | |
void | NutTcpProcessAck (TCPSOCKET *sock, TCPHDR *th, u_short length) |
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... | |
void | NutTcpStateMachine (TCPSOCKET *sock, NETBUF *nb) |
Process TCP incoming segments. More... | |
int | IsInLimits (u_long x, u_long low, u_long high) |
Sequence number comparisons. More... | |
HANDLE | NutTcpTrace (HANDLE hout) |
Switch on/off TCP trace. | |
Variables | |
NUTDEVICE* | tcp_trace |
TCP provides reliable, in-sequence delivery of a full-duplex stream of octets. It is used by applications which need a reliable, connection-oriented data transport.
|
Sequence number comparisons.
Return true if x is between low and high inclusive, false otherwise |
|
Process incoming TCP segments from IP layer.
\warn The caller must take care not to pass broadcast or multicast segments.
|
|
ACK processing.
|
|
Initiated by the application.
|
|
Initiated by the application.
Optionally specify the local IP address.
|
|
Changes state to TCPS_FIN_WAIT_1.
Initiated by the application. No further data sending is accepted. Receiving is still allowed.
|
|
Process TCP incoming segments.
Processing is based on the current state of the socket connection.
|
|
Initiated by the application.
|
|
Retransmit a segment after ACK timeout.
This function is called by the TCP timer.
|
|
Signal timewait timeout.
|
|
Signal user timeout.
|
|
TCP trace device. |