3 ms·
> Using sockets in a synchronous fashion is one way to block for an indefinite period of time. I'm not saying to use sockets in a synchronous fashion (i.e. blo
by jstimpfle 5y ago
> Using sockets in a synchronous fashion is one way to block for an indefinite period of time.
I'm not saying to use sockets in a synchronous fashion (i.e. blocking I/O). That would, of course, potentially block the thread indefinitely.
"Plain, simple, procedural" does not imply "blocking I/O". What I mean is to use no fancy types, no callbacks, no crazy automatic scheduling magic. Very simply, there is nothing special required to handle events. Just a buffer.