2019年4月6日
摘要: 一、epoll服务端实现中需要的3个函数: epoll_create:创建保存epoll文件描述符的空间。 epoll_ctl:向空间注册并注销文件描述符。 epoll_wait:与select函数类似,等待文件描述符发生变化。 二、示例 回声服务端: 1 #include <stdio.h> 2 阅读全文
posted @ 2019-04-06 22:38 acgame 阅读(230) 评论(0) 推荐(0) 编辑