epoll echo server restructure