Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

...