Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Examples

TCP configuration options


Defines

#define UIP_ACTIVE_OPEN
 Determines if support for opening connections from uIP should be compiled in.
#define UIP_CONNS
 The maximum number of simultaneously open TCP connections.
#define UIP_LISTENPORTS
 The maximum number of simultaneously listening TCP ports.
#define UIP_URGDATA
 Determines if support for TCP urgent data notification should be compiled in.
#define UIP_RTO   3
 The initial retransmission timeout counted in timer pulses.
#define UIP_MAXRTX   8
 The maximum number of times a segment should be retransmitted before the connection should be aborted.
#define UIP_MAXSYNRTX   5
 The maximum number of times a SYN segment should be retransmitted before a connection request should be deemed to have been unsuccessful.
#define UIP_TCP_MSS   (UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN)
 The TCP maximum segment size.
#define UIP_RECEIVE_WINDOW
 The size of the advertised receiver's window.
#define UIP_TIME_WAIT_TIMEOUT   120
 How long a connection should stay in the TIME_WAIT state.


Define Documentation

#define UIP_ACTIVE_OPEN
 

Determines if support for opening connections from uIP should be compiled in.

If the applications that are running on top of uIP for this project do not need to open outgoing TCP connections, this configration option can be turned off to reduce the code size of uIP.

Definition at line 238 of file uipopt.h.

#define UIP_CONNS
 

The maximum number of simultaneously open TCP connections.

Since the TCP connections are statically allocated, turning this configuration knob down results in less RAM used. Each TCP connection requires approximatly 30 bytes of memory.

Definition at line 250 of file uipopt.h.

#define UIP_LISTENPORTS
 

The maximum number of simultaneously listening TCP ports.

Each listening TCP port requires 2 bytes of memory.

Definition at line 264 of file uipopt.h.

Referenced by tcp_listen(), tcp_unlisten(), tcpip_uipcall(), uip_init(), uip_listen(), uip_process(), and uip_unlisten().

#define UIP_MAXRTX   8
 

The maximum number of times a segment should be retransmitted before the connection should be aborted.

This should not be changed.

Definition at line 293 of file uipopt.h.

Referenced by uip_process().

#define UIP_MAXSYNRTX   5
 

The maximum number of times a SYN segment should be retransmitted before a connection request should be deemed to have been unsuccessful.

This should not need to be changed.

Definition at line 302 of file uipopt.h.

Referenced by uip_process().

#define UIP_RECEIVE_WINDOW
 

The size of the advertised receiver's window.

Should be set low (i.e., to the size of the uip_buf buffer) is the application is slow to process incoming data, or high (32768 bytes) if the application processes data quickly.

Definition at line 322 of file uipopt.h.

Referenced by uip_process().

#define UIP_RTO   3
 

The initial retransmission timeout counted in timer pulses.

This should not be changed.

Definition at line 285 of file uipopt.h.

Referenced by uip_process().

#define UIP_TCP_MSS   (UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN)
 

The TCP maximum segment size.

This is should not be to set to more than UIP_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN.

Definition at line 310 of file uipopt.h.

Referenced by uip_process().

#define UIP_TIME_WAIT_TIMEOUT   120
 

How long a connection should stay in the TIME_WAIT state.

This configiration option has no real implication, and it should be left untouched.

Definition at line 333 of file uipopt.h.

Referenced by uip_process().

#define UIP_URGDATA
 

Determines if support for TCP urgent data notification should be compiled in.

Urgent data (out-of-band data) is a rarely used TCP feature that very seldom would be required.

Definition at line 278 of file uipopt.h.


Generated on Thu Jun 22 17:45:43 2006 for Contiki 2.x by  doxygen 1.4.4