异步事件处理库 libevent

jopen 12年前
     <p><strong>libevent</strong>是一个异步事件处理<span class="mw-redirect">软件</span>函式库,libevent提供了一组<span class="mw-redirect">应用程序编程接口</span>(API),让程式设计师可以设定某些事件发生时所执行的<span class="mw-redirect">函式</span>,也就是说,libevent可以用来取代<span class="mw-redirect">网络</span><span class="mw-redirect">服务器</span>所使用的<span class="new">循环</span>检查架构。</p>    <p>由于可以省去对网络的处理,且拥有不错的效能,有些软件使用libevent作为网络底层的函式库,如:memcached、Tor。<br /> 以下这些项目证明了<strong><span style="font-weight:normal;">libevent的API非常实用:</span><br /> </strong></p>    <ul>     <li><a href="/misc/goto?guid=4958545576193387913">Chromium</a> – Google's open-source web browser (uses Libevent on Mac and Linux)</li>     <li><a href="/misc/goto?guid=4958530973117293440">Memcached</a> – a high-performance, distributed memory object caching system</li>     <li><a href="/misc/goto?guid=4958347288234961455">Transmission</a> – a fast, easy, and free BitTorrent client</li>     <li><a href="/misc/goto?guid=4958861005300093795">NTP</a> – the network time protocol that makes your clock right (uses Libevent in SNTP)</li>     <li><a href="/misc/goto?guid=4958330716319724274">tmux</a> – A clean, modern, BSD-licensed terminal multiplexer, similar to GNU screen</li>     <li><a href="/misc/goto?guid=4958545600122105024">Tor</a> – an anonymous Internet communication system.</li>     <li><a href="/misc/goto?guid=4959499956528913362">libevhtp</a> – A fast and flexible replacement for libevent's httpd API</li>     <li><a href="/misc/goto?guid=4958861779769261837">Prosody</a> – A Jabber/XMPP server written in Lua</li>     <li><a href="/misc/goto?guid=4959499956643925052">PgBouncer</a> – Lightweight connection pooler for PostgreSQL</li>     <li><a href="/misc/goto?guid=4959499956717134658">redsocks</a> – a simple transparent TCP -> Socks5/HTTPS proxy daemon.</li>     <li><a href="/misc/goto?guid=4959499956877274836">Vomit</a> – Voice Over Misconfigured Internet Telephones</li>     <li><a href="/misc/goto?guid=4959499956959038358">Crawl</a> – A Small and Efficient HTTP Crawler</li>     <li><a href="/misc/goto?guid=4959499957045965723">Libio</a> – an input/output abstraction library</li>     <li><a href="/misc/goto?guid=4959499957121741464">Honeyd</a> – a virtual honeynet daemon – can be used to <a href="/misc/goto?guid=4959499957197910605">fight Internet worms</a>.</li>     <li><a href="/misc/goto?guid=4959499957283267038">Fragroute</a> – an IDS testing tool</li>     <li><a href="/misc/goto?guid=4959499957358338155">Nylon</a> – nested proxy server</li>     <li><a href="/misc/goto?guid=4959499957439266744">Disconcert</a> – a Distributed Computing Framework for Loosely-Coupled Workstations.</li>     <li><a href="/misc/goto?guid=4959499957525147455">Trickle</a> – a lightweight userspace bandwidth shaper.</li>     <li><a href="/misc/goto?guid=4959499957595267461">watchcatd</a> – software watchdog designed to take actions not as drastic as the usual solutions, which reset the machine.</li>     <li><a href="/misc/goto?guid=4959499957670796842">ScanSSH</a> – a fast SSH server and open proxy scanner.</li>     <li><a href="/misc/goto?guid=4959499957758790168">Nttlscan</a> – a network topology scanner for Honeyd.</li>     <li><a href="/misc/goto?guid=4959499957838464099">NetChat</a> – a combination of netcat and ppp's chat.</li>     <li><a href="/misc/goto?guid=4959499957921497221">Io</a> – a small programming language; uses libevent for network communication.</li>     <li><a href="/misc/goto?guid=4959499958155893840">Systrace</a> – a system call sandbox.</li>     <li><a href="/misc/goto?guid=4959499958224046042">SpyBye</a> – detect malware on web pages.</li>     <li><a href="/misc/goto?guid=4959499958349112427">GreenSQL</a> – an SQL database firewall.</li>     <li><a href="/misc/goto?guid=4959499958430610861">dnsscan</a> – a fast scanner for identifying open recursive dns resolvers</li>     <li><a href="/misc/goto?guid=4959499958506800570">Kargo Event</a> – a PHP extension for libevent.</li>     <li><a href="/misc/goto?guid=4959499958591516295">wlmproxy</a> – a transparent proxy server for the MSN Messenger protocol</li>    </ul>    <p><br />  </p>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1324994535327" target="_blank">http://www.open-open.com/lib/view/home/1324994535327</a></p>