码迷,mamicode.com
首页 >  
搜索关键字:epoll    ( 1282个结果
简单通讯聊天 群聊功能 Windows下的客户端 Linux下的epoll服务器
1 服务器代码 Linux eclipse C++ 1 //============================================================================ 2 // Name : epollServer.cpp 3 // Author : f
分类:Windows程序   时间:2016-02-16 16:28:42    阅读次数:332
浅谈网络I/O多路复用模型 select & poll & epoll
我们首先需要知道select,poll,epoll都是IO多路复用的机制。I/O多路复用就通过一种机制,可以监视多个描述符,一旦某个描述符就绪(一般是读就绪或者写就绪),能够通知程序进行相应的读写操作。但select,poll,epoll本质上都是同步I/O,因为他们都需要在读写事件就绪后自己负责进行读写,也就是说这个读写过程是阻塞的。 select的基本用法:http://blog.csdn....
分类:其他好文   时间:2016-02-14 17:04:37    阅读次数:197
epoll案例
#include <stdio.h>#include <string.h>#include <iostream>#include <fcntl.h>#include <sys/socket.h>#include <netdb.h>#include <netinet/in.h>#include <ar
分类:其他好文   时间:2016-02-03 00:11:42    阅读次数:198
DNS压力测试工具dnsperf简介
dnsperf是我最近写的一个开源的DNS压力测试工具,用户可以用它来对DNS服务器或者Local DNS做压力测试。dnsperf目前的实现是单进程模式,通过epoll非阻塞地处理网络事件。 dnsperf的地址:https://github.com/cobblau/dnsperf 参数详解 Dn
分类:其他好文   时间:2016-01-31 02:58:45    阅读次数:143
多路复用io接口-epoll
多路复用io接口-epoll简单使用
分类:其他好文   时间:2016-01-30 02:39:14    阅读次数:120
IO多路复用-select
首先列一下,sellect、poll、epoll三者的区别 select select最早于1983年出现在4.2BSD中,它通过一个select()系统调用来监视多个文件描述符的数组,当select()返回后,该数组中就绪的文件描述符便会被内核修改标志位,使得进程可以获得这些文件描述符从而进行后续
分类:其他好文   时间:2016-01-29 20:58:34    阅读次数:333
Nginx配置文件优化
nginx.conf主配置文件:userwebweb;#nginx运行用户和组worker_processes8;#主进程数量worker_rlimit_nofile102400;#文件句柄数量error_log/usr/local/nginx/logs/nginx_error.logcrit;#错误日志pid/var/run/nginx.pid;events{useepoll;#使用epoll模型worker_connections102400;#..
分类:其他好文   时间:2016-01-27 17:32:38    阅读次数:234
select/poll/epoll on serial port
In this article, I will use three asynchronous conferencing--select, poll and epoll on serial port to transmit data between PC and Raspberry pi.Outlin...
分类:其他好文   时间:2016-01-22 00:10:57    阅读次数:244
1282条   上一页 1 ... 87 88 89 90 91 ... 129 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!