![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux网络编程
惜朝_
这个作者很懒,什么都没留下…
展开
-
POLL
pollpoll是Linux中的字符设备驱动中的一个函数。Linux 2.5.44版本后,poll被epoll取代。和select实现的功能差不多,poll的作用是把当前的文件指针挂到等待队列。#include <poll.h>int poll(struct pollfd fds[], nfds_t nfds, int timeout);参数说明: fds:是...原创 2018-03-23 22:22:13 · 215 阅读 · 0 评论 -
Golang 高性能网络库 evio 源码解析
原文链接: https://note.mogutou.xyz/articles/2019/08/06/1565053139105.html阅读前提:了解 epollevio 是一个基于事件驱动的网络框架,它非常轻量而且相比 Go net 标准库更快。其底层使用epoll 和 kqueue 系统调度实现。原理evio 是 Reactor 模式的简单实现。Reactor 本质就是“non...原创 2019-08-16 19:13:07 · 3593 阅读 · 0 评论 -
Golang 网络库 evio 一些问题/bug和思考
原文链接:https://note.mogutou.xyz/articles/2019/08/15/1565876205121.htmlFast event-loop networking for Go最近翻了 evio 的源码,发现一些问题,主要集中在 linux 平台 epoll 上和读写的处理。用来唤醒 epoll 的 eventfd 写入数据没有读出listen 的 fd 注...原创 2019-08-16 19:15:18 · 1916 阅读 · 0 评论