<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[CrazyCode_Lee的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/CrazyCode_Lee</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; CrazyCode_Lee]]></copyright><item><title><![CDATA[在libevent中使用线程池]]></title><link>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/7048619</link><guid>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/7048619</guid><author>CrazyCode_Lee</author><pubDate>Wed, 07 Dec 2011 09:51:42 +0800</pubDate><description><![CDATA[在libevent中使用线程池

2009-08-25 20:18






一 线程的初始化

1线程对象

     在进行事件驱动时，每个线程需建立自己的事件根基。由于libevent未提供线程之间通信的方式，我们采用管道来进行线程的通信。同时为方便主线程分配线程，我们还需保留各个线程的id号。因此我们采用如下结构来保留每个线程的有关信息。

typedef]]></description><category></category></item><item><title><![CDATA[使用libevent编写linux服务（二）]]></title><link>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/7048614</link><guid>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/7048614</guid><author>CrazyCode_Lee</author><pubDate>Wed, 07 Dec 2011 09:51:17 +0800</pubDate><description><![CDATA[使用libevent编写linux服务（二）

2009-08-22 17:42






4 处理连接

     到这里为止，大家已经完成了事件的设置、事件的添加并进入到了事件循环。但是当事件发生时（这里就是连接建立）如何处理呢？ 聪明的用户会想到前面我们在事件设置时指定的回调函数accept_handle。没错，当连接建立时回调函数accept_handle会自动的得]]></description><category></category></item><item><title><![CDATA[使用libevent编写linux服务(一)]]></title><link>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/7048608</link><guid>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/7048608</guid><author>CrazyCode_Lee</author><pubDate>Wed, 07 Dec 2011 09:50:26 +0800</pubDate><description><![CDATA[使用libevent编写linux服务(一)

一 libevent简介

libevent是一个支持Windows、linux和bsd等平台的网络事件驱动程序库。它支持多种I/O服用机制，按照优先级从高到低依次为：evport、kqueue、epoll、devpoll、rtsig、poll、select。它可根据操作系统，按照优先级从高到底自主选择驱动。

     用户可以通过ht]]></description><category></category></item><item><title><![CDATA[网络编程(完成端口IOCP)]]></title><link>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6981621</link><guid>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6981621</guid><author>CrazyCode_Lee</author><pubDate>Thu, 17 Nov 2011 14:13:37 +0800</pubDate><description><![CDATA[Windows 完成端口编程


分类： 网络编程2009-12-31
 11:20 755人阅读 评论(4) 收藏 举报



Windows 完成端口编程
本文为转载, 原文地址:  http://xingzhesun.blogbus.com/logs/3925649.html


Table of Contents


1 基本概念2 OVERLAPPED数据结]]></description><category></category></item><item><title><![CDATA[Libevent参考手册：使用libevent的DNS：高层和底层功能 (2011-08-11 21:13:16)]]></title><link>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950685</link><guid>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950685</guid><author>CrazyCode_Lee</author><pubDate>Wed, 09 Nov 2011 01:03:08 +0800</pubDate><description><![CDATA[Libevent参考手册：使用libevent的DNS：高层和底层功能
 (2011-08-11 21:13:16)
转载






标签： 

dns
 

it
 

libevent
 

网络编程


分类： Libevent







译自http://www.wangafu.net/~nickm/libevent-bo]]></description><category></category></item><item><title><![CDATA[Libevent参考手册：连接监听器：接受TCP连接 (2011-08-02 20:56:19)]]></title><link>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950684</link><guid>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950684</guid><author>CrazyCode_Lee</author><pubDate>Wed, 09 Nov 2011 01:02:17 +0800</pubDate><description><![CDATA[Libevent参考手册：连接监听器：接受TCP连接
 (2011-08-02 20:56:19)
转载






标签： 

evconnlistener
 

it
 

libevent
 

连接监听器
 

网络编程


分类： Libevent







译自http://www.wangafu.net/~nic]]></description><category></category></item><item><title><![CDATA[Libevent参考手册：evbuffer：缓冲IO实用功能 (2011-07-31 16:41:46)]]></title><link>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950683</link><guid>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950683</guid><author>CrazyCode_Lee</author><pubDate>Wed, 09 Nov 2011 01:01:11 +0800</pubDate><description><![CDATA[Libevent参考手册：evbuffer：缓冲IO实用功能
 (2011-07-31 16:41:46)
转载






标签： 

bufferevent
 

evbuffer
 

libevent
 

网络编程
 

延迟回调
 

杂谈


分类： Libevent







译自http://www.w]]></description><category></category></item><item><title><![CDATA[Libevent参考手册：Bufferevent：高级话题 (2011-07-17 22:22:20)]]></title><link>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950680</link><guid>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950680</guid><author>CrazyCode_Lee</author><pubDate>Wed, 09 Nov 2011 00:59:23 +0800</pubDate><description><![CDATA[Libevent参考手册：Bufferevent：高级话题
 (2011-07-17 22:22:20)
转载






标签： 

bufferevent
 

bufferevent对
 

libevent
 

ssl
 

速率限制
 

杂谈


分类： Libevent







译自http://www]]></description><category></category></item><item><title><![CDATA[[翻译]libevent参考手册第六章：bufferevent：概念和入门 (2011-04-30 19:26:17)]]></title><link>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950677</link><guid>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950677</guid><author>CrazyCode_Lee</author><pubDate>Wed, 09 Nov 2011 00:58:34 +0800</pubDate><description><![CDATA[[翻译]libevent参考手册第六章：bufferevent：概念和入门
 (2011-04-30 19:26:17)
转载






标签： 

bufferevent
 

evbuffer
 

it
 

libevent
 

水位
 

网络编程
 

延迟回调


分类： Libevent]]></description><category></category></item><item><title><![CDATA[[翻译]libevent参考手册第五章：辅助类型和函数]]></title><link>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950676</link><guid>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950676</guid><author>CrazyCode_Lee</author><pubDate>Wed, 09 Nov 2011 00:57:21 +0800</pubDate><description><![CDATA[[翻译]libevent参考手册第五章：辅助类型和函数
 
(2011-04-18 21:57:28)
转载






标签： 

libevent
 

网络编程
 

it


分类： Libevent







译自http://www.wangafu.net/~nickm/libevent-book/Ref5_evutil.h]]></description><category></category></item><item><title><![CDATA[翻译：libevent参考手册第四章：与事件一起工作]]></title><link>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950675</link><guid>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950675</guid><author>CrazyCode_Lee</author><pubDate>Wed, 09 Nov 2011 00:56:47 +0800</pubDate><description><![CDATA[翻译：libevent参考手册第四章：与事件一起工作
 (2011-04-10 20:40:27)
转载






标签： 

libevent
 

非阻塞io
 

公用超时
 

激活
 

网络编程
 

未决
 

信号事件
 

it


分类： Libevent






译自http://www]]></description><category></category></item><item><title><![CDATA[翻译：Libevent参考手册第三章：与事件循环一起工作]]></title><link>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950673</link><guid>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950673</guid><author>CrazyCode_Lee</author><pubDate>Wed, 09 Nov 2011 00:55:45 +0800</pubDate><description><![CDATA[翻译：Libevent参考手册第三章：与事件循环一起工作
 (2011-04-05 16:40:38)
转载






标签： 

libevent
 

网络编程
 

it


分类： Libevent





译自http://www.wangafu.net/~nickm/libevent-book/Ref3_eventloop.htm]]></description><category></category></item><item><title><![CDATA[翻译：libevent参考手册第二章：创建event_base]]></title><link>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950672</link><guid>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950672</guid><author>CrazyCode_Lee</author><pubDate>Wed, 09 Nov 2011 00:54:52 +0800</pubDate><description><![CDATA[网络编程


分类： Libevent







译自http://www.wangafu.net/~nickm/libevent-book/Ref2_eventbase.html

 

使用libevent函数之前需要分配一个或者多个event_base结构体。每个event_base结构体持有一个事件集合，可以检测以确定哪个事件是激活的。

如果设置ev]]></description><category></category></item><item><title><![CDATA[翻译：Libevent参考手册第一章：设置libevent 	(2011-03-30 07:56:42)]]></title><link>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950669</link><guid>https://blog.youkuaiyun.com/CrazyCode_Lee/article/details/6950669</guid><author>CrazyCode_Lee</author><pubDate>Wed, 09 Nov 2011 00:52:54 +0800</pubDate><description><![CDATA[翻译：Libevent参考手册第一章：设置libevent
 
(2011-03-30 07:56:42)
转载






标签： 

libevent
 

网络编程


分类： Libevent






翻译自：http://www.wangafu.net/~nickm/libevent-book/Ref1_libsetup.html]]></description><category></category></item></channel></rss>