
技术转载
mtour
这个作者很懒,什么都没留下…
展开
-
linux epoll 使用详解
epoll - I/O event notification facility在linux的网络编程中,很长的时间都在使用select来做事件触发。在linux新的内核中,有了一种替换它的机制,就是epoll。相比于select,epoll最大的好处在于它不会随着监听fd数目的增长而降低效率。因为在内核中的select实现中,它是采用轮询来处理的,轮询的fd数目越多,自然耗时越多。并且转载 2014-10-22 18:03:26 · 457 阅读 · 0 评论 -
libcurl 示例代码
http://curl.haxx.se/libcurl/c/example.htmlSome of the Examplessimple HTTPsimple.c shows how to get a remote web page in only four libcurl function calls.simple HTTPShttps.c get转载 2014-10-17 17:41:36 · 671 阅读 · 0 评论