UDP Socket
The User Datagram Protocol (UDP) is unreliable and only provides simple transport layer addressing to transfer data streams. Because of it simplicity and small protocol overhead, it is suitable for direct peer-to-peer communication on local LANs.
The following UDP options are configurable:
- UDP Sockets switch enables or disables the UDP Socket service in your application. It is enabled when this value is set to 1. It should be set to 0 when the UDP connections are not used.
#define UDP_ENABLE 1
- Number of UDP Sockets specifies the number of available UDP sockets. This number is usually set to the maximum number of simultaneously opened UDP connections.
#define UDP_NUMSOCKS 5
Note
- When the UDP Sockets are not enabled, the ARM linker does not link the UDP support modules to your application and thus reduces the code size and memory usage.