BSD Sockets and poll-triggered work items #networking #api



Is there currently any way to trigger a work item when a message arrives to a BSD socket (without creating a new thread)? From the documentation it looks like there are two polling methods (k_poll() and zsock_poll()) and these two are not compatible, i. e. k_poll() cannot query sockets. Is it true, and is there any workaround other than having a dedicated thread handle sockets?

Thanks to everyone,

Valentin Plotkin

Join to automatically receive all group messages.