Embedded TCP/IP stack  4.7.0

◆ fnet_socket_poll()

fnet_size_t fnet_socket_poll ( fnet_socket_poll_t socket_poll,
fnet_size_t  socket_poll_size 
)

Polls socket event state.

Parameters
socket_pollArray for socket events to be checked.
socket_poll_sizeNumber of items in the socket_poll array.
Returns
This function returns number of items in socket_poll array which have nonzero events_occurred fields.
Zero value indicates that no event has occurred.

This function polls for any set of occurred socket events.
It may be used to check if one or more sockets become ready to perform input/output activity.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net