Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
utility/uipethernet-conf.h@20:fe5026169ec6, 2017-01-14 (annotated)
- Committer:
- cassyarduino
- Date:
- Sat Jan 14 19:51:58 2017 +0100
- Revision:
- 20:fe5026169ec6
- Parent:
- 0:e3fb1267e3c3
- Child:
- 21:c4439c50a5af
Changes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cassyarduino | 0:e3fb1267e3c3 | 1 | #ifndef UIPETHERNET_CONF_H |
cassyarduino | 0:e3fb1267e3c3 | 2 | #define UIPETHERNET_CONF_H |
cassyarduino | 0:e3fb1267e3c3 | 3 | |
cassyarduino | 0:e3fb1267e3c3 | 4 | /* for TCP */ |
cassyarduino | 0:e3fb1267e3c3 | 5 | #define UIP_SOCKET_NUMPACKETS 5 |
cassyarduino | 0:e3fb1267e3c3 | 6 | #define UIP_CONF_MAX_CONNECTIONS 4 |
cassyarduino | 0:e3fb1267e3c3 | 7 | |
cassyarduino | 0:e3fb1267e3c3 | 8 | /* for UDP |
cassyarduino | 0:e3fb1267e3c3 | 9 | * set UIP_CONF_UDP to 0 to disable UDP (saves aprox. 5kb flash) */ |
cassyarduino | 0:e3fb1267e3c3 | 10 | #define UIP_CONF_UDP 1 |
cassyarduino | 0:e3fb1267e3c3 | 11 | #define UIP_CONF_BROADCAST 1 |
cassyarduino | 0:e3fb1267e3c3 | 12 | #define UIP_CONF_UDP_CONNS 4 |
cassyarduino | 0:e3fb1267e3c3 | 13 | |
cassyarduino | 0:e3fb1267e3c3 | 14 | /* number of attempts on write before returning number of bytes sent so far |
cassyarduino | 0:e3fb1267e3c3 | 15 | * set to -1 to block until connection is closed by timeout */ |
cassyarduino | 0:e3fb1267e3c3 | 16 | #define UIP_ATTEMPTS_ON_WRITE -1 |
cassyarduino | 0:e3fb1267e3c3 | 17 | |
cassyarduino | 0:e3fb1267e3c3 | 18 | /* timeout after which UIPClient::connect gives up. The timeout is specified in seconds. |
cassyarduino | 0:e3fb1267e3c3 | 19 | * if set to a number <= 0 connect will timeout when uIP does (which might be longer than you expect...) */ |
cassyarduino | 0:e3fb1267e3c3 | 20 | #define UIP_CONNECT_TIMEOUT -1 |
cassyarduino | 0:e3fb1267e3c3 | 21 | |
cassyarduino | 0:e3fb1267e3c3 | 22 | /* periodic timer for uip (in ms) */ |
cassyarduino | 0:e3fb1267e3c3 | 23 | #define UIP_PERIODIC_TIMER 250 |
cassyarduino | 0:e3fb1267e3c3 | 24 | |
cassyarduino | 0:e3fb1267e3c3 | 25 | /* timer to poll client for data after last write (in ms) |
cassyarduino | 20:fe5026169ec6 | 26 | * set to -1 to disable fast polling and rely on periodic only (saves 100 bytes flash) |
cassyarduino | 20:fe5026169ec6 | 27 | * Default value by Norbert is 10 */ |
cassyarduino | 20:fe5026169ec6 | 28 | #define UIP_CLIENT_TIMER -1 |
cassyarduino | 0:e3fb1267e3c3 | 29 | |
cassyarduino | 0:e3fb1267e3c3 | 30 | #endif |