Sync Epoll Client

Intro

The client side code of a simple relay server using sync epoll.

Supported command

  1. start {nSession}
  2. test {nContent}
  3. stop
  4. exit

Code Review

  1. Bad error handler

mix up perror and fprintf(stderr)

  1. Inconsistent naming

i.e do_event and doWrite

  1. Messy epoll event management.
  2. Confusing code logic.