a epoll example from:
code from network