Linux网络编程
我去前面探探路a
这个作者很懒,什么都没留下…
展开
-
libevent——epoll 反应堆模型
一、epoll服务器 :epoll — 服务器 — 监听 — fd ----可读 ---- epoll返回 ---- read — 小写转大写 — write ---- epoll继续监听。epoll 反应堆模型:创建efd(epoll_create) ---- 增加fd(epoll_ctl) ---- epoll_wait返回----fd可读 ---- read ---- fd从树上摘...原创 2019-05-18 16:26:41 · 212 阅读 · 0 评论 -
Linux——网络编程线程池机制
#include <stdlib.h>#include <pthread.h>#include <unistd.h>#include <assert.h>#include <stdio.h>#include <string.h>#include <signal.h>#include <errno...原创 2019-05-18 20:11:47 · 285 阅读 · 0 评论