The BSD Socket API is a programming interface, which implements
standard Berkeley Socket communication interface. These APIs
are not a complete implementation of the BSD API.
The following BSD options are configurable:
BSD Sockets switch enables or disables the BSD Socket
service in your application. It is enabled when this value is set
to 1. It should be set to 0 when the BSD connections are not
used.
#define BSD_ENABLE 1
Number of BSD Sockets specifies the number of available
BSD sockets. This number is usually set to the maximum number of
simultaneously opened connections.
#define BSD_NUMSOCKS 5
Number of Streaming Server Sockets specifies the number of
streaming (TCP) server sockets. The server sockets listen for an
incoming connection from the client.
#define BSD_SRVSOCKS 1
Receive Timeout in seconds is the timeout, after which the
receiving socket returns in blocking mode. A value of 0 disables
the receive timeout.
#define BSD_RCVTOUT 20
Hostname Resolver switch enables or disables the Host Name
Resolver (DNS) service.
#define BSD_GETHOSTEN 0
Note
When the BSD Sockets are not enabled, the ARM linker
does not link the BSD support modules to your application
and thus reduces the code size and memory usage.
The BSD Socket API uses the underlying native TCP and UDP
Sockets.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.