07 2013 档案

摘要:转自:酷壳http://coolshell.cn/articles/8990.html感谢网友full_of_bull投递此文(注:此文最初发表在这个这里,我对原文后半段修改了许多,并加入了插图)Linus大婶在slashdot上回答一些编程爱好者的提问,其中一个人问他什么样的代码是他所喜好的,大婶表述了自己一些观点之后,举了一个指针的例子,解释了什么才是core low-level coding。下面是Linus的教学原文及翻译——“At the opposite end of the spectrum, I actually wish more people understood the 阅读全文
posted @ 2013-07-07 22:33 hailong 阅读(292) 评论(0) 推荐(0) 编辑
摘要:在网上找了个例子,其实libevent本身带了很多测试用例,不过这是第一次编译成功,尼玛 各种高性能IO库都是在linux下的,win32果断被bs了,还好有libevent对win32支持的比较好。lib很顺利的编译好了。下面就是很简单的使用下socket:#include #include #include #include #include #include #include #pragma comment(lib,"ws2_32.lib")#include #include #define LISTEN_PORT 9999#define LISTEN_BACKLOG 阅读全文
posted @ 2013-07-04 10:01 hailong 阅读(3177) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示