epoll socket
时间: 2023-09-30 11:06:36 浏览: 102
Epoll是一种高效的管理socket的模型,相对于select和poll来说具有更高的效率和易用性。 它的主要作用是用来进行多个socket的监听。当建立了多个socket时,就会用到epoll等I/O多路复用技术来管理这些socket。 当使用epoll时,会涉及到两个主要的结构体,分别是eventpoll和epitem。Eventpoll是每一个epoll所对应的,而epitem则是每一个IO所对应的事件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [epoll实现socket通信](https://blog.csdn.net/lemontree1945/article/details/108189835)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [基于epoll的socket编程总结](https://blog.csdn.net/xikangsoon/article/details/104705991)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文