Zirconi

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年4月8日

摘要: 一段简单的epoll测试例子,编译运行后可以直接用浏览器访问localhost来测试。 1 #include <unistd.h> 2 #include <sys/socket.h> 3 #include <sys/epoll.h> 4 #include <arpa/inet.h> 5 #include <netinet/in.h> 6 #include <fcntl.h> 7 #include <string.h> 8 #include <stdlib.h> 9 #include <stdi 阅读全文
posted @ 2013-04-08 19:56 Zirconi 阅读(510) 评论(0) 推荐(0) 编辑