摘要:
Acceptor类一般由TCPServer创建,负责处理客户端发送的connect,它拥有一个acceptSocket_和acceptChannel_成员。1、创建Acceptor :TcpServer::TcpServer(EventLoop* loop,const InetA... 阅读全文
摘要:
如果发现在用户目录下没有.vimrc文件,我们可以在用户目录~下添加一个.vimrc文件,vim ~/.vimrc之后输入随便输入一些设置,比如设置上行号:set numberset tags+=tags;保存之后,不想重启的话可以直接执行 :source ~/.vimrcgvim: the fil... 阅读全文
摘要:
https://github.com/resiprocate/resiprocatehttp://www.resiprocate.org/Main_Pagehttp://www.resiprocate.org/Configuration_Optionshttp://www.resiprocate.o... 阅读全文
摘要:
windows下Code::Blocks建立GNU编译的工程:1、需要添加如下头文件:D:\E\programing\levent-libevent\includeD:\E\programing\levent-libevent\gnu\includeC:\Program Files\Dev-Cpp\... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文