Fork for fixes

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers uipethernet-conf.h Source File

uipethernet-conf.h

00001 #ifndef UIPETHERNET_CONF_H
00002 #define UIPETHERNET_CONF_H
00003 
00004 /* for TCP */
00005 
00006 #define UIP_SOCKET_NUMPACKETS   5
00007 #define UIP_MAX_CONNECTIONS     4
00008 
00009 /* for UDP
00010  * set UIP_CONF_UDP to 0 to disable UDP (saves aprox. 5kb flash) */
00011 
00012 #define UIP_CONF_UDP            1
00013 #define UIP_CONF_BROADCAST      1
00014 #define UIP_CONF_UDP_CONNS      4
00015 
00016 /* number of attempts on write before returning number of bytes sent so far
00017  * set to -1 to block until connection is closed by timeout */
00018 
00019 #define UIP_ATTEMPTS_ON_WRITE   -1
00020 
00021 /* timeout after which UIPClient::connect gives up. The timeout is specified in seconds.
00022  * if set to a number <= 0 connect will timeout when UIP does (which might be longer than you expect...) */
00023 
00024 #define UIP_CONNECT_TIMEOUT     -1
00025 
00026 /* periodic timer for uip (in ms) */
00027 
00028 #define UIP_PERIODIC_TIMEOUT    250
00029 
00030 /* timer to poll client for data after last write (in ms) */
00031 
00032 #define UIP_CLIENT_TIMEOUT      10
00033 #endif