mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-23 00:36:42 -10:00
socket_poll runs on select() on Windows, and FD_SET drops a socket once a set holds FD_SETSIZE (64): any socket past the 64th was never reported ready, so a poll over more sockets waited out its timeout. A Winsock fd_set is a count and an array that select() reads up to the count. Up to FD_SETSIZE sockets the sets stay on the stack; past it they are allocated for the call, sized for the sockets given. socket_poll_test polls 150 loopback UDP sockets, on Linux and under Wine: the two given a datagram, the 71st and the last, are the only readable ones, all are writable, and none ready times out.