On Mon, 2 Nov 2026 23:46:58 +0200 Michael S <alre…@yahoo.com> gabbled:
>On Mon, 2 Nov 2026 15:43:42 -0000 (UTC) >bolt…@caprica.universe wrote:
>> Last time I had the misfortune to use win32 it couldn't multiplex on >> sockets. >>
> >That's nonsense. That part of Winsock2 API did not change since 1993. >That is, in early 2000s they added poll() (WAASAPoll), but select() is > the same BSD select() from the very beginning, just a little easier to >use than original, because nfds is DNC. >Now, if you woulds say that on Winsock2 select() can't multiplex >waiting for socket I/O with waiting for other sorts of I/O (files and >pipes) then your statement would make more sense*.
Yes, for some bizarre reason MS implemented the userspace sockets as some kind of handle instead of an integer file descriptor like every other sockets library.
>2) today, with nearly all file I/O deeply cached, multiplexing waiting >for file I/O with waiting for sockets is a bad idea. OTOH, Multiplexing >sockets with pipes could still make sense, infrequently.
Depends on the use case.