<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Rouchie]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/rouchie</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; rouchie]]></copyright><item><title><![CDATA[403 Forbidden]]></title><link>https://blog.youkuaiyun.com/rouchie/article/details/80516192</link><guid>https://blog.youkuaiyun.com/rouchie/article/details/80516192</guid><author>rouchie</author><pubDate>Wed, 30 May 2018 21:17:25 +0800</pubDate><description><![CDATA[403 ForbiddenThe requested URL '/abc.cgi' resolves to a file which is marked executable but is not a CGI file; retrieving it is forbidden.]]></description><category></category></item><item><title><![CDATA[libevent ---- evtimer_set  event_set]]></title><link>https://blog.youkuaiyun.com/rouchie/article/details/80464072</link><guid>https://blog.youkuaiyun.com/rouchie/article/details/80464072</guid><author>rouchie</author><pubDate>Sat, 26 May 2018 18:44:51 +0800</pubDate><description><![CDATA[void
event_set(struct event *ev, evutil_socket_t fd, short events,
	  void (*callback)(evutil_socket_t, short, void *), void *arg)
#define evtimer_set(ev, cb, arg)	event_set((ev), -1, 0, (cb), (arg))
...]]></description><category></category></item><item><title><![CDATA[libevent ---- 一个简单的定时器小例子]]></title><link>https://blog.youkuaiyun.com/rouchie/article/details/80463098</link><guid>https://blog.youkuaiyun.com/rouchie/article/details/80463098</guid><author>rouchie</author><pubDate>Sat, 26 May 2018 16:52:01 +0800</pubDate><description><![CDATA[#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;iostream&amp;gt;
#include &amp;lt;event.h&amp;gt;

using namespace std;

void timer_1s_callback(int fd, short event, void *arg)
{

    cout &amp;lt;&amp;lt; &quot;on Time&quot; &amp;lt;&amp;lt; endl;
...]]></description><category></category></item><item><title><![CDATA[libevent ---- event_init]]></title><link>https://blog.youkuaiyun.com/rouchie/article/details/80462840</link><guid>https://blog.youkuaiyun.com/rouchie/article/details/80462840</guid><author>rouchie</author><pubDate>Sat, 26 May 2018 16:39:43 +0800</pubDate><description><![CDATA[struct event_base * event_init(void)    这个函数非常的简单只是在函数中分配一个struct event_base 的结构体出来    并赋值给全局变量struct event_base *event_global_current_base_，并且将该指针返回。    根据之后看的情况慢慢的去了解 struct event_base 这个结构体...]]></description><category></category></item></channel></rss>