You can also use very portable and universal solution: mhd = MHD_start_daemon(MHD_USE_AUTO, while(1){ fd_set rs; fd_set ws; fd_set es; MHD_socket maxsock; struct timeval tv; struct timeval* tvp; unsigned long long tov; FD_ZERO (&rs); FD_ZERO (&ws); FD_ZERO (&es); maxsock = MHD_INVALID_
On Wed, Dec 4, 2019 at 9:38 AM Evgeny Grin wrote:
> You can also use very portable and universal solution:
>
> mhd = MHD_start_daemon(MHD_USE_AUTO,
>
> while(1)
> {
> fd_set rs;
> fd_set ws;
>
Thanks for sharing!
Is there any version of this code using epoll()? If so, I could contribute