libevent – an event notification library

The libevent API (libevent应用程序)provides a mechanism(机制) to execute(执行) a callback function(回调函数) when a specific(特别的) event occurs on(发生在) a file descriptor(文件描述符) or after a timeout has been reached.(时间超时之后)

Furthermore(此外), libevent also support callbacks due to(对于) signals(信号) or regular timeouts.(规律性的超时)

libevent is meant to (是为了)replace the event loop (时间循环)found in(分布在) event driven network servers(事件驱动网络服务器). An application just needs to call event_dispatch()and then(然后) add or remove events dynamically (动态地)without having to (而不需要)change the event loop.

Currently, libevent supports /dev/pollkqueue(2)event portsPOSIX select(2)Windows select()poll(2), and epoll(4). The internal event mechanism(内部的事件机制) is completely independent of the exposed(暴露的) event API, and a simple update of libevent can provide new functionality(功能) without having to redesign(重新设计) the applications. As a result, Libevent allows for(允许) portable application(绿色软件) development and provides the most scalable(可扩展的) event notification mechanism available on an operating system. Libevent can also be used for被用于 multi-threaded多线程 applications, either(也) by(通过) isolating(隔离) each event_base(事件库) so that(以便于) only a single thread accesses(访问) it, or by locked(锁定) access to a single shared event_base.Libevent should compile(编译) on Linux, *BSD, Mac OS X, Solaris, Windows, and more.

Libevent additionally(附带的地;此外) provides a sophisticated(复杂的) framework(框架) for buffered(缓冲的) network IO, with support for sockets(套接口), filters(过滤器), rate-limiting(限速), SSL(安全套接层), zero-copy file transmission(零拷贝文件传输), and IOCP输入输出应用程序. Libevent includes support for several useful protocols(协议), including DNS, HTTP, and a minimal(最低地) RPC(远程过程调用) framework(框架).

More information about event notification mechanisms for network servers can be found on(基于) Dan Kegel's "The C10K problem" web page.

mailing list for libevent (libevent邮件列表)is now available. Libevent is maintained(维持) by Nick Mathewson and Niels Provos.

看libevent所遇到的英语生词的更多相关文章

  1. [置顶] think in java interview番外篇-谈程序员如何修练英语

    一.程序员对英语能力的重视度和能力要求应该是在各行各业中排在比较靠前的 这样说吧,英语程度的好坏直接影响着一个程序员的编程.开发.创新能力. 道理很简单: 1. 计算机和软件是用英语创造出来的 2. ...

  2. libevent源码深度剖析

    原文地址: http://blog.csdn.net/sparkliang/article/details/4957667 第一章 1,前言 Libevent是一个轻量级的开源高性能网络库,使用者众多 ...

  3. 项目中libevent几个问题

    几个问题: .libevent到底用的是select还是iocp,然后是如何突破64限制的 typedef struct fd_set { u_int fd_count; /* how many ar ...

  4. HDU-1020-Encoding(水题,但题目意思容易搞错,英语的问题)

    题目链接 http://acm.hdu.edu.cn/webcontest/contest_showproblem.php?pid=1000&ojid=0&cid=7996&h ...

  5. Libevent教程001: 简介与配置

    本文内容大致翻译自 libevent-book, 但不是照本翻译. 成文时, libevent最新的稳定版为 2.1.8 stable. 即本文如无特殊说明, 所有描述均以 2.1.8 stable ...

  6. libevent(了解)

    1 前言 Libevent是一个轻量级的开源高性能网络库,使用者众多,研究者更甚,相关文章也不少.写这一系列文章的用意在于,一则分享心得:二则对libevent代码和设计思想做系统的.更深层次的分析, ...

  7. 【学习】JennyHui学英语 - 生词积累

    (主要是来自于普特英语) 平常积累 20140820 20140826 VOA慢速英语生词积累 2014-10-08 2014-10-11 2014-10-13 2014-10-14 2014-10- ...

  8. libevent源码深度剖析二

    libevent源码深度剖析二 ——Reactor模式 张亮 前面讲到,整个libevent本身就是一个Reactor,因此本节将专门对Reactor模式进行必要的介绍,并列出libevnet中的几个 ...

  9. libevent到底是同步还是异步,是阻塞还是非阻塞

    应该从不同角度看libevent的同步/异步.阻塞/非阻塞: IO数量的角度:select出来之前,会阻塞在一个io上,处理完成后再阻塞在下一个io上:之后就是把所有的io fd拿过来,都不阻塞,一个 ...

随机推荐

  1. 【12c OCP】最新CUUG OCP-071考试题库(50题)

    50.(11-15)choose two Examine the structure of the MARKS table: Which two statements would execute su ...

  2. junit启动tomcat来进行单元测试

    1.pom.xml配置下载需要的jar.   <dependency>            <groupId>junit</groupId>            ...

  3. Django-DRF-视图的演变

    版本一(基于类视图APIView类) views.py: APIView是继承的Django View视图的. from .serializers import UserSerializers #导入 ...

  4. python 去除字符串的首末两端的空白字符

    my_str = " adsffff adsfsad " my_str.strip() 使用strip()默认将 str 两端的空白字符去除掉 同时还有rstrip() 和 lst ...

  5. Spring Boot 入门系列

    本系列博文版权 简书 面皮大师 所有,转载请标明原文及出处: http://www.jianshu.com/u/062bd8f1299c 项目地址: https://github.com/daleiw ...

  6. 利用python 学习数据分析 (学习二)

    内容学习自: Python for Data Analysis, 2nd Edition         就是这本 纯英文学的很累,对不对取决于百度翻译了 前情提要: 各种方法贴: https://w ...

  7. ubuntu apt update时W: GPG error http://ppa.launchpad.net lucid Release没有公钥无法验证NO_PUBKEY签名问题解决

    在安装更新时,即在运行命令行sudo apt-get update 或者运行更新管理器的时候,出现W: GPG 错误: W: GPG error: http://ppa.launchpad.net/o ...

  8. iOS开发~制作同时支持armv7,armv7s,arm64,i386,x86_64的静态库.a以及 FrameWork 的创建

    armv7,armv7s,arm64,i386,x86_64 详解 一.概要 平时项目开发中,可能使用第三方提供的静态库.a,如果.a提供方技术不成熟,使用的时候就会出现问题,例如: 在真机上编译报错 ...

  9. k-近邻算法 python实现

    必要的注释已经写在code里面了: import operator from numpy import* def init(): grp=array([[1.0,1.1],[1.0,1.0],[0,0 ...

  10. DataTables复杂表头

    工作上的需要,要做一个复杂的表头的DataTables thead如下 遇到的问题(详细问题可以浏览官网的答案 链接) 需自定义表头(thead),如果不自定义则会 Cannot read prope ...