How to convert the "select" function into a "poll" function

i have a program using the select function but i want to convert it to poll... how can i do this? thanks in advance... :slight_smile:

Select is asynchronous, whereas you listen on a socket and when inbound information comes in,the process that is in select mode accepts the data.

Polling would require the process to actively initiate the action to go 'get the data'.

This is a very different method and is not simple matter of converting select (the system call) to another function. You must restructure the algorithm.