dipshit / teapot

☕️Fault Tolerant, High Performance Teapot
Other
10 stars 2 forks source link

Non blocking event-driven I/O with epoll #5

Closed kirinrastogi closed 5 years ago

kirinrastogi commented 5 years ago

handle with epoll

kirinrastogi commented 5 years ago

try this next, for each process that forks:

epoll_create open a nonblocking socket and push to vec

loop

listen and accept on socket if one is opened, make another and push epoll_ctl it epoll_wait for a read to be ready from a socket when a read is ready, send() it a 418 non-blocking end