picoos-net
1.xxxx
|
Macros | |
#define | UIP_CONF_MAX_CONNECTIONS 4 |
#define | UIP_CONF_MAX_LISTENPORTS 2 |
#define | UIP_CONF_BUFFER_SIZE 590 |
#define | UIP_CONF_UDP 1 |
#define | UIP_CONF_UDP_CHECKSUMS 1 |
#define | UIP_CONF_UDP_CONNS 1 |
#define | UIP_CONF_STATISTICS 1 |
#define | UIP_CONF_LOGGING 1 |
#define | UIP_CONF_IPV6 1 |
uIP configuration settings that are related to picoos-net. For complete documentation, see related Contiki OS documentation.
#define UIP_CONF_MAX_CONNECTIONS 4 |
Max number of connections. If using socket layer (NETCFG_SOCKETS == 1) Each socket consumes one Pico]OS mutex and two flags. In addition to that, network main loop uses one semaphore and one mutex. If uIP listen is enabled to accept incoming connections, a task is required for each connection. So if number of connections is for example 4, 5 * 3 + 2 Pico]OS events are needed. If using NOSCFG_FEATURE_CONOUT add 2 to that, which gives us 19 event objects.
Number of tasks needed for tcp sockets is 4, but network system itself uses one tasks and we must also have main and idle tasks. This results in 7 tasks. Values values can be used in poscfg.h for POSCFG_MAX_TASKS and POSCFG_MAX_EVENTS.
#define UIP_CONF_MAX_LISTENPORTS 2 |
Maximum number of ports being listened for incoming connections.
#define UIP_CONF_BUFFER_SIZE 590 |
Size of UIP packet buffer. Using 590 gives TCP MTU of 536 bytes, which is the minimum allowed.
#define UIP_CONF_UDP 1 |
Set to 1 if UDP connections should be included.
#define UIP_CONF_UDP_CHECKSUMS 1 |
Set to 1 to enable UDP checksumming.
#define UIP_CONF_UDP_CONNS 1 |
Number of UDP connections.
#define UIP_CONF_STATISTICS 1 |
Set to 1 to include uIP runtime statistics support.
#define UIP_CONF_LOGGING 1 |
Set to 1 to include uIP error logging.
#define UIP_CONF_IPV6 1 |
IPv4/IPv6 configuration:
There is no support for dual-stack configuration (ie. both IPv4 & IPv6 enabled).