LINUX IO多路复用
文章平均质量分 60
~
ghoti-
这个作者很懒,什么都没留下…
展开
-
epoll io多路复用示例
epoll io多路复用示例#include <stdio.h>#include <string.h>#include <stdlib.h>#include <netinet/in.h>#include <sys/socket.h>#include <arpa/inet.h>#include <pthread.h>#include <errno.h>#include <fcntl.h>原创 2022-04-29 15:47:51 · 81 阅读 · 0 评论 -
epoll使用详解 epoll_create epoll_ctl epoll_wait close
文章目录前言一、epoll接口1 int epoll_create(int size)2 int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event)3 int epoll_wait(int epfd, struct epoll_event * events, int maxevents, int timeout)二、工作模式关于ET、LT两种工作模式ET模式与LT模式的区别在于三 使用epoll四 完整示例前言在linux网络编转载 2022-04-29 15:15:23 · 1683 阅读 · 1 评论