Versions Compared

Key

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

Check if any sockets are ready for available read or write operations or error conditions.

Files

net_sock.h/net_sock.c
net_bsd.h/net_bsd.c

Prototypes

Arguments

sock_nbr_max

Specifies the maximum number of socket file descriptors in the file descriptor sets.

...

NET_SOCK_ERR_NONE
NET_SOCK_ERR_TIMEOUT
NET_INIT_ERR_NOT_COMPLETED
NET_SOCK_ERR_INVALID_DESC
NET_SOCK_ERR_INVALID_TIMEOUT
NET_SOCK_ERR_INVALID_SOCK
NET_SOCK_ERR_INVALID_TYPE
NET_SOCK_ERR_NOT_USED
NET_SOCK_ERR_EVENTS_NBR_MAX
NET_ERR_FAULT_LOCK_ACQUIRE

Returned Value

Returns the number of sockets ready with available operations, if successful;

...

NET_SOCK_BSD_ERR_SEL/-1, otherwise.

Required Configuration

Available only if NET_SOCK_CFG_SEL_EN is enabled (see section Socket Layer Configuration).

Notes / Warnings

Supports socket file descriptors only (i.e., socket ID numbers).

...