Chat client and server using epoll mechanism