exactly.
a couple of additions to my previous post.
- here was an example of not so simple machine (connector to postgres dbms)
- the only thing that you can do truly asynchronously (regarding sockets) with epoll (which is synchronous syscall) is establishing connection, you just get “ready for write” (
EPOLLOUT
) notification.