Basic
Code
epoll
methods
1 | epoll_create(...) // 创建 epoll |
steps
socket()
bind()
listen()
- epoll
epoll_create()
epoll_ctl()
: Add server socket to epoll instanceepoll_wait()
accept()
epoll_ctl()
: Add client socket to epoll instanceread()
write()