Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Controlling Socket Blocking Options

Socket blocking options may be configured during compile time by adjusting the net_cfg.h macro NET_SOCK_CFG_BLOCK_SEL to the following values:

NET_SOCK_BLOCK_SEL_DFLT
NET_SOCK_BLOCK_SEL_BLOCK
NET_SOCK_BLOCK_SEL_NO_BLOCK

NET_SOCK_BLOCK_SEL_DFLT selects blocking as the default option, however, allows run-time code to override blocking settings by specifying additional socket.
NET_SOCK_BLOCK_SEL_BLOCK configures all sockets to always block.
NET_SOCK_BLOCK_SEL_NO_BLOCK configures all sockets to non blocking.

See the section C-13-46 and section C-13-48 for more information about sockets and blocking options.

Specific Socket Option API

µC/TCP-IP provides a set of APIs to configure sockets on an individual basis. These APIs are listed below and detailed in Network Socket Functions:

Generic Socket Option API

µC/TCP-IP provides two APIs to read and configure socket option values. These APIs are listed below and detailed in Network Socket Functions:

Their BSD equivalent are listed below. See also BSD Functions.

  • No labels