RetroArch
Macros
TCP configuration options
Collaboration diagram for TCP configuration options:

Macros

#define UIP_ACTIVE_OPEN
 
#define UIP_TCP_PCBS
 
#define UIP_LISTEN_TCP_PCBS
 
#define UIP_TCPIP_SOCKS
 
#define UIP_TCP_SEGS   32
 
#define UIP_URGDATA
 
#define UIP_RTO   3
 
#define UIP_MAXRTX   12
 
#define UIP_MAXSYNRTX   4
 
#define UIP_TCP_MSS   (1460)
 
#define UIP_TCP_SND_BUF   (4*UIP_TCP_MSS)
 
#define UIP_TCP_SND_QUEUELEN   (4*UIP_TCP_SND_BUF/UIP_TCP_MSS)
 
#define UIP_TCP_WND   (4*UIP_TCP_MSS)
 
#define UIP_TIME_WAIT_TIMEOUT   120
 

Detailed Description

The name of the function that should be called when UDP datagrams arrive.

Macro Definition Documentation

◆ UIP_ACTIVE_OPEN

#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.

◆ UIP_LISTEN_TCP_PCBS

#define UIP_LISTEN_TCP_PCBS

The maximum number of simultaneously listening TCP ports.

Each listening TCP port requires 2 bytes of memory.

◆ UIP_MAXRTX

#define UIP_MAXRTX   12

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

This should not be changed.

◆ UIP_MAXSYNRTX

#define UIP_MAXSYNRTX   4

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.

◆ UIP_RTO

#define UIP_RTO   3

The initial retransmission timeout counted in timer pulses.

This should not be changed.

◆ UIP_TCP_MSS

#define UIP_TCP_MSS   (1460)

The TCP maximum segment size.

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

◆ UIP_TCP_PCBS

#define UIP_TCP_PCBS

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.

◆ UIP_TCP_SEGS

#define UIP_TCP_SEGS   32

◆ UIP_TCP_SND_BUF

#define UIP_TCP_SND_BUF   (4*UIP_TCP_MSS)

◆ UIP_TCP_SND_QUEUELEN

#define UIP_TCP_SND_QUEUELEN   (4*UIP_TCP_SND_BUF/UIP_TCP_MSS)

◆ UIP_TCP_WND

#define UIP_TCP_WND   (4*UIP_TCP_MSS)

◆ UIP_TCPIP_SOCKS

#define UIP_TCPIP_SOCKS

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.

◆ UIP_TIME_WAIT_TIMEOUT

#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.

◆ UIP_URGDATA

#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.