
libev
GoRustNeverStop
这个作者很懒,什么都没留下…
展开
-
使用 libevent 和 libev 提高网络应用性能
构建现代的服务器应用程序需要以某种方法同时接收数百、数千甚至数万个事件,无论它们是内部请求还是网络连接,都要有效地处理它们的操作。有许多解决方 案,但是 libevent 库和 libev 库能够大大提高性能和事件处理能力。在本文中,我们要讨论在 UNIX® 应用程序中使用和部署这些解决方案所用的基本结构和方法。libev 和 libevent 都可以在高性能应用程序中使用,包括部署在 IBM C转载 2016-04-14 19:43:20 · 458 阅读 · 0 评论 -
Create TCP Echo Server using Libev
Libev provides APIs to write asynchronous socket programming. This article describes how to write a simple TCP echo server using libev.Lets start to write simple asynchronous TCP echo server with转载 2017-06-22 14:37:06 · 677 阅读 · 0 评论 -
使用 libev 构建 TCP 响应服务器(echo server)的简单流程
请注意这是 libev 而不是 libevent 的文章!这篇文章主要是使用具体的例子,说明如何使用 libev。网上不少文章都是照抄示例,一点用都没有……本文将示例的代码精简一下,补上说明;大家都懂的部分就不赘述了。需要完整源码请查看参考资料。本文地址:https://segmentfault.com/a/1190000006691243ReferenceCreate转载 2017-06-22 14:34:43 · 2021 阅读 · 0 评论 -
Libev 官方文档学习笔记 - 03:常用 watcher 接口
请注意这是 libev 而不是 libevent 的文章!这篇文章是第三篇,主要讲 libev 里基本集中的 watcher。本文地址:https://segmentfault.com/a/1190000006679929ev_io:直接操作fd这个 watcher 负责检测文件描述符(以下简称fd)是否可写入数据或者是读出数据。最好是将fd设置为非阻塞的。转载 2017-06-22 14:33:31 · 910 阅读 · 0 评论 -
Libev 官方文档学习笔记 - 02:watcher 基础
请注意这是 libev 而不是 libevent 的文章!这篇文章是第二篇,主要讲 libev 里的 watcher 的一些基础操作。本文地址:https://segmentfault.com/a/1190000006200077Watcher 解析以下是一段示意性的代码,使用的是ev_io:static void my_cb (struct ev_loop *转载 2017-06-22 14:32:24 · 583 阅读 · 0 评论 -
Libev 官方文档学习笔记 - 01:概述和 ev_loop
请注意这是 libev 而不是 libevent 的文章!自从接触到 libev 之后,就深深赞同作者精简的设计理念,于是就爱上了 libev 这样简单的I/O库。此外,libev 的大小也比 libevent 小得多并且自由得多。虽然我在公司的项目用的异步 I/O 库还是以 libevent 和 libubox 为主,但是个人业余的工程中,往往用的是 libev 而不是 libevent转载 2017-06-22 14:31:14 · 2661 阅读 · 0 评论 -
libev-4.0.3 manual
=head1 NAMElibev - a high performance full-featured event loop written in C=head1 SYNOPSIS #include =head2 EXAMPLE PROGRAM // a single header file is required #in转载 2016-12-14 17:27:55 · 1635 阅读 · 0 评论 -
libev 中IO事件循环解析
1、IO事件基本数据结构ev_iostruct ev_io这个结构体是IO监视器。libev中所有的事件均有自己的一个结构体来表示,如时间事件是ev_time、ev_io等。基类ev_watcher定义如下:typedef struct ev_watcher{ int active; int pending; int priority; void *data;转载 2016-10-24 09:56:06 · 4006 阅读 · 0 评论 -
libev多线程使用例
ibev多线程使用例,参考memcached使用方法。#include #include #include #include #include #include #include #include #include #define MAXLEN 1023#define PORT 9999#define ADDR_IP "192.168.206.1转载 2016-09-23 11:00:33 · 4114 阅读 · 1 评论 -
revision history for libev
Changes marked with (libev) are changes in libev, and have moredocumentation in the libev Changes file. 4.22 Sun Dec 20 02:34:39 CET 2015 -(libev) when epoll detects u转载 2017-06-22 14:42:05 · 1345 阅读 · 0 评论