posts - 8,  comments - 0,  views - 2399
< 2025年6月 >
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 1 2 3 4 5
6 7 8 9 10 11 12
 
摘要: Acceptor类一般由TCPServer创建,负责处理客户端发送的connect,它拥有一个acceptSocket_和acceptChannel_成员。1、创建Acceptor :TcpServer::TcpServer(EventLoop* loop,const InetA... 阅读全文
posted @ 2014-04-23 18:00 escoffier 阅读(597) 评论(0) 推荐(1)
  2014年5月21日
摘要: 如果发现在用户目录下没有.vimrc文件,我们可以在用户目录~下添加一个.vimrc文件,vim ~/.vimrc之后输入随便输入一些设置,比如设置上行号:set numberset tags+=tags;保存之后,不想重启的话可以直接执行 :source ~/.vimrcgvim: the fil... 阅读全文
posted @ 2014-05-21 14:39 escoffier 阅读(142) 评论(0) 推荐(0)
  2014年5月17日
摘要: https://github.com/resiprocate/resiprocatehttp://www.resiprocate.org/Main_Pagehttp://www.resiprocate.org/Configuration_Optionshttp://www.resiprocate.o... 阅读全文
posted @ 2014-05-17 01:08 escoffier 阅读(292) 评论(0) 推荐(0)
  2014年4月29日
摘要: windows下Code::Blocks建立GNU编译的工程:1、需要添加如下头文件:D:\E\programing\levent-libevent\includeD:\E\programing\levent-libevent\gnu\includeC:\Program Files\Dev-Cpp\... 阅读全文
posted @ 2014-04-29 10:43 escoffier 阅读(237) 评论(0) 推荐(0)
摘要: add the following text to .vimrc or .gvimrc: if has("cscope") set csprg=/usr/bin/cscope set csto=0 set cst set nocsverb " add any database in cur... 阅读全文
posted @ 2014-04-29 10:39 escoffier 阅读(337) 评论(0) 推荐(0)
  2014年4月28日
摘要: When a TCP socket is set to nonblocking and then connect is called, connect returns immediately with an error of EINPROGRESS but the TCP three-way han... 阅读全文
posted @ 2014-04-28 16:39 escoffier 阅读(288) 评论(0) 推荐(0)
  2014年4月26日
摘要: By default, sockets are blocking. This means that when we issue a socket call that cannot be completed immediately, our process is put to sleep, waiti... 阅读全文
posted @ 2014-04-26 16:11 escoffier 阅读(367) 评论(0) 推荐(0)
  2014年4月20日
摘要: 1、epoll_create函数函数声明:int epoll_create(int size)该 函数生成一个epoll专用的文件描述符。它其实是在内核申请一空间,用来存放你想关注的socket fd上是否发生以及发生了什么事件。size就是你在这个epoll fd上能关注的最大socket fd数... 阅读全文
posted @ 2014-04-20 22:50 escoffier 阅读(139) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示