3 ms·
No, there's no better pattern than select/poll/epoll/kqueue-then-multiple-read. Using many threads or async I/O can allow you to handle multiple file descripto
by JoachimSchipper 10y ago
No, there's no better pattern than select/poll/epoll/kqueue-then-multiple-read.
Using many threads or async I/O can allow you to handle multiple file descriptors, but these are hardly convenient - and it's easy to end up with less-performant code.
- JoachimSchipper 10y agoFwiw: you can, however, send multiple datagrams to multiple hosts with sendmmsg(). Still one socket at a time, but...