friendev EtherDune TCP/IP library
Macros
TCP state timeout configuration

TCP timeouts, in milliseconds. More...

Macros

#define SCK_TIMEOUT_SYN_SENT_MS   5000
 (client) represents waiting for a matching connection request after having sent a connection request. More...
 
#define SCK_TIMEOUT_SYN_RECEIVED_MS   5000
 (server) SYN has been received, SYN ACK was sent and now waiting for ACK. More...
 
#define SCK_TIMEOUT_FIN_WAIT_1_MS   6000
 (both server and client) represents waiting for a connection termination request from the remote TCP, or an acknowledgment of the connection termination request previously sent. More...
 
#define SCK_TIMEOUT_FIN_WAIT_2_MS   2000
 (both server and client) represents waiting for a connection termination request from the remote TCP. More...
 
#define SCK_TIMEOUT_CLOSE_WAIT_MS   2000
 (both server and client) represents waiting for a connection termination request from the local user. More...
 
#define SCK_TIMEOUT_CLOSING_MS   2000
 (both server and client) represents waiting for a connection termination request acknowledgment from the remote TCP. More...
 
#define SCK_TIMEOUT_LAST_ACK_MS   2000
 (both server and client) represents waiting for an acknowledgment of the connection termination request previously sent to the remote TCP (which includes an acknowledgment of its connection termination request). More...
 
#define SCK_TIMEOUT_TIME_WAIT_MS   3000
 (either server or client) represents waiting for enough time to pass to be sure the remote TCP received the acknowledgment of its connection termination request. More...
 
#define SCK_TIMEOUT_RESOLVING_MS   3000
 waiting for a DNS query to resolve. More...
 

Detailed Description

TCP timeouts, in milliseconds.

These represent how much patience will EtherDune have waiting in this state before thinking something is wrong and doing something about it.

Macro Definition Documentation

#define SCK_TIMEOUT_CLOSE_WAIT_MS   2000

(both server and client) represents waiting for a connection termination request from the local user.

Definition at line 163 of file config.h.

#define SCK_TIMEOUT_CLOSING_MS   2000

(both server and client) represents waiting for a connection termination request acknowledgment from the remote TCP.

Definition at line 164 of file config.h.

#define SCK_TIMEOUT_FIN_WAIT_1_MS   6000

(both server and client) represents waiting for a connection termination request from the remote TCP, or an acknowledgment of the connection termination request previously sent.

Definition at line 161 of file config.h.

#define SCK_TIMEOUT_FIN_WAIT_2_MS   2000

(both server and client) represents waiting for a connection termination request from the remote TCP.

Definition at line 162 of file config.h.

#define SCK_TIMEOUT_LAST_ACK_MS   2000

(both server and client) represents waiting for an acknowledgment of the connection termination request previously sent to the remote TCP (which includes an acknowledgment of its connection termination request).

Definition at line 165 of file config.h.

#define SCK_TIMEOUT_RESOLVING_MS   3000

waiting for a DNS query to resolve.

Definition at line 167 of file config.h.

#define SCK_TIMEOUT_SYN_RECEIVED_MS   5000

(server) SYN has been received, SYN ACK was sent and now waiting for ACK.

Definition at line 160 of file config.h.

#define SCK_TIMEOUT_SYN_SENT_MS   5000

(client) represents waiting for a matching connection request after having sent a connection request.

Definition at line 159 of file config.h.

#define SCK_TIMEOUT_TIME_WAIT_MS   3000

(either server or client) represents waiting for enough time to pass to be sure the remote TCP received the acknowledgment of its connection termination request.

[According to RFC 793 a connection can stay in TIME-WAIT for a maximum of four minutes known as a MSL (maximum segment lifetime)].

Definition at line 166 of file config.h.