Linux epoll 예제
#include #include #include #include #include #include #include #include #include #include #define MAXEVENTS 64 static int make_socket_non_blocking(int sfd) { int flags, s; flags = fcntl(sfd, F_GETFL, 0); if (flags == -1) { perror("fcntl"); return -1; } flags |= O_NONBLOCK; s = fcntl(sfd, F_SETFL, flags); if (s == -1) { perror("fcntl"); return -1; } return 0; } static int create_and_bind(char *po..
시스템 엔지니어링
2016. 4. 6. 11:20
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday