epoll 예제
<epoll> #include <stdio.h> #include <stdlib.h>#include <string.h> #include <sys/socket.h> #include <sys/epoll.h> // epoll system call 쓰기위한 헤더 #include <arpa/inet.h> #include <unistd.h> #include <errno.h> #include <fcntl.h> #define MAXPENDING 5 #define BUFSIZE 256 #define MAXSOCKET 10000 // 감시할 최대 소켓 수 /* 임..