Is there any good examples or tutorial about epoll UDP?

↘锁芯ラ 提交于 2019-12-09 13:54:15

问题


I have been working with linux server using epoll and almost finished it. And I realized that clients will send packets using udp :(

Could you please provide me any good tutorials or example using epoll udp?

Thanks in advance.


回答1:


The man pages were helpful for me. There's also a good code example in there.

  • 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

If you're really insisting on tutorial, I'd recommend:

  • https://banu.com/2011/06/how-to-use-epoll-complete-example/
  • https://github.com/felipecruz/rio/blob/master/src/network.c


来源:https://stackoverflow.com/questions/6370008/is-there-any-good-examples-or-tutorial-about-epoll-udp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!