3 ms·
It's not just works, it's actually the only one that works properly for most things and is the most portable across OSes.
by zzzcpan 10y ago
It's not just works, it's actually the only one that works properly for most things and is the most portable across OSes.
- sp332 10y agoI was kinda embarrassed about making a new program with select() a few years ago. I'd rather have written something with a epoll or kpoll or something like that, but the documentation was pretty bad and I never got them to work. Anyway it doesn't need to scale, it only ever has three servers talking to it. Works great, whether I like the style or not.
- tptacek 10y agoHence libevent (&c). Coding direct to select is a little like reading directly from /dev/bpf0.
- sp332 10y agoThat's probably fair, but beej's guide corrupted me. It's just too user-friendly. I'll look around again for the next project though.
- eps 10y agoselect() has its uses and servicing a small handful of sockets is one of them. Nothing to be embarassed about.