摘要: #include#include#include#include#ifndef MAX_LEN#define MAX_LEN 256#endif#define EPOLL_SIZE 1000int main(int atgc ,char **argv){ int fd = 0; int len = 0; int nfds = 0; int index = 0; char buf[MAX_LEN] = {0}; struct epoll_event ev; struct epoll_event event[EPOLL_SIZE]; //create a epoll object if(-1==( 阅读全文
posted @ 2013-09-07 20:51 wowk 阅读(1303) 评论(0) 推荐(0) 编辑