I wrote a small TCP servers socket()+ POLLIN poll() + recv()+ send(), but I do not know when to use POLLOUT poll or select writefdsto poll on record events.
socket()
poll()
recv()
send()
writefds
Can someone give me an example of the real use of POLLOUT ?
A common pattern is to use non-blocking file descriptors with the poll()following:
POLLIN
POLLOUT
nginx , :
- , nginx syscall (, writev). , nginx , POLLOUT pollfd, , , . nginx .
, nginx