摘要:
1 typedef union epoll_data { 2 void *ptr; 3 int fd; /* 一般填被监控fd */ 4 uint32_t u32; 5 uint64_t u64; 6 } epoll_data_t; 7 8 struct ... 阅读全文
posted @ 2017-06-02 13:33
战神一笑
阅读(335)
评论(0)
推荐(0)
摘要:
1 typedef union epoll_data { 2 void *ptr; 3 int fd; 4 uint32_t u32; 5 uint64_t u64; 6 } epoll_data_t; 7 8 struct epoll_event { 9 ... 阅读全文
posted @ 2017-06-02 11:11
战神一笑
阅读(162)
评论(0)
推荐(0)
摘要:
typedef union epoll_data { void *ptr; int fd; uint32_t u32; uint64_t u64; } epoll_data_t; struct epoll_event { uint32_t events; ... 阅读全文
posted @ 2017-06-02 11:10
战神一笑
阅读(435)
评论(0)
推荐(0)
摘要:
#include <sys/epoll.h> int epoll_create(int size); int epoll_create1(int flags); int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event); i 阅读全文
posted @ 2017-06-02 11:09
战神一笑
阅读(138)
评论(0)
推荐(0)
摘要:
typedef union epoll_data { void *ptr; int fd; uint32_t u32; uint64_t u64; } epoll_data_t; struct epoll_event { uint32_t events; /* Epoll events */ epo 阅读全文
posted @ 2017-06-02 11:05
战神一笑
阅读(90)
评论(0)
推荐(0)

浙公网安备 33010602011771号