【问题标题】:Is there any good examples or tutorial about epoll UDP?有没有关于 epoll UDP 的好例子或教程? 【发布时间】:2011-06-16 09:52:44 【问题描述】: 我一直在使用 epoll 与 linux 服务器合作,几乎完成了。 我意识到客户端将使用 udp 发送数据包:( 能否请您提供任何使用 epoll udp 的好教程或示例? 提前致谢。 【问题讨论】: 标签: epoll 【解决方案1】: 手册页对我很有帮助。里面还有一个很好的代码示例。 http://kernel.org/doc/man-pages/online/pages/man4/epoll.4.html http://kernel.org/doc/man-pages/online/pages/man2/epoll_create1.2.html 如果你真的坚持教程,我建议: https://banu.com/2011/06/how-to-use-epoll-complete-example/ https://github.com/felipecruz/rio/blob/master/src/network.c 【讨论】: