Sync Epoll Client
Intro
The client side code of a simple relay server
using sync epoll
.
Supported command
start {nSession}
test {nContent}
stop
exit
Code Review
- Bad error handler
mix up
perror
andfprintf(stderr)
- Inconsistent naming
i.e
do_event
anddoWrite
- Messy epoll event management.
- Confusing code logic.