libevent
-
Control of the execution process is now handled by the libevent system .
执行过程的控制现在由libevent系统处理。
-
This is the core of the libevent system .
这是libevent系统的核心。
-
For example , you could deploy a libevent based interface to your IBM Cloud management or other solution .
例如,可以在IBMCloud或其他解决方案中部署基于libevent的接口。
-
One other element of the libevent toolkit is support for generic timers .
libevent工具包的另一个特性是支持通用计时器。
-
The library implementations in these languages tend to support the core of the libevent system and not always the HTTP wrapper .
用这些语言编写的libevent实现通常支持libevent系统的核心,但是不一定支持HTTP包装器。
-
The libevent library doesn 't actually replace the fundamentals of the select (), poll () or other mechanisms .
libevent库实际上没有更换select()、poll()或其他机制的基础。
-
To build the application , compile the C source code adding the libevent library : $ gcc-o basic basic.c-levent .
为了构建这个应用程序,需要编译C源代码并添加libevent库:$gcc-obasicbasic.c-levent。
-
To actually handle each request , the libevent library provides an event mechanism that acts as a wrapper around the underlying network backend .
为了实际处理每个请求,libevent库提供一种事件机制,它作为底层网络后端的包装器。
-
Download libevent : An asynchronous event-notification library .
下载libevent:一个异步事件通知库。
-
If you don 't get this response , go back through the previous steps and make sure the source for both libevent and memcached was successfully built .
如果未获得此响应,则应该返回之前的步骤并确保libevent和memcached的源文件都已成功生成。
-
To do this , you can download the source , run the configure script , and make the server ; you need the libevent library for this .
为此,您可以下载源代码、运行配置脚本并运行服务器;需要用到libevent库。
-
The only prerequisite to installing memcached is libevent , the asynchronous event-notification library that memcached depends upon .
libevent是安装memcached的唯一前提条件。它是memcached所依赖的异步事件通知库。
-
The libevent timer uses the timeval structure , which allows timers to be specified in both seconds and microseconds .
libevent计时器使用timeval结构,允许按秒和毫秒指定计时器。
-
Behind the scenes , libevent is handling the network sockets , identifying which clients need to be serviced , and calling the corresponding functions in each case .
在幕后,libevent处理网络套接字,识别需要服务的客户端,分别调用对应的函数。
-
There are two routes : either embed the language into your C-based libevent application or use one of the many HTTP implementations built on top of the scripted language environment .
有两种方法:要么把脚本语言嵌入到基于C的libevent应用程序中,要么使用基于脚本语言环境构建的众多HTTP实现之一。
-
Memcached is an RAM cache for storing and handling data ( which uses libevent at it 's core , as well as being used with other libevent servers ) .
Memcached是用于存储和处理数据的RAM缓存(其核心使用libevent,也可以使用其他libevent服务器)。
-
Before looking at how libevent and libev are able to handle multiple network connections , let 's take a brief look at some of the traditional solutions for handling this type of connectivity .
在讨论libevent和libev如何处理多个网络连接之前,我们先简要回顾一下处理这类连接的传统解决方案。
-
Fortunately , most scripting languages , such as Perl and PHP , are written natively in C and so can make use of a C library like libevent through their extension modules .
幸运的是,Perl和PHP等大多数脚本语言是用C编写的,所以可以通过扩展模块使用libevent等C库。
-
Keep in mind that the libevent server is running in a single thread , and a single client is unlikely to stress the server , since it will also be limited by the method of opening requests .
请记住,这个libevent服务器在单一线程中运行,而且单一客户端不太可能给服务器造成压力,因为它还受到打开请求的方法的限制。
-
The libev system is , like libevent , an event loop based system that builds on top of the native implementations of poll (), select (), and so on to provide an event based loop .
与libevent一样,libev系统也是基于事件循环的系统,它在poll()、select()等机制的本机实现的基础上提供基于事件的循环。
-
Additional components of the libevent library add further functionality , including a buffered event system ( for buffer data to / from clients ) and core implementations for HTTP , DNS and RPC systems .
libevent库的其他组件提供其他功能,包括缓冲的事件系统(用于缓冲发送到客户端/从客户端接收的数据)以及HTTP、DNS和RPC系统的核心实现。