
handy
春泥面包
这个作者很懒,什么都没留下…
展开
-
handy:daemon.cc
https://github.com/yedf/handyExitCallernamespace handy {namespace {struct ExitCaller { ~ExitCaller() { functor_(); } ExitCaller(std::function<void()>&& functor): functor_(std::move(functor)) {原创 2016-10-08 14:14:01 · 1186 阅读 · 0 评论 -
handy:echo server
https://github.com/yedf/handy/blob/master/examples/echo.cc对比handy的echo和muduo的echo,handy发挥了C++11 lambda的优势,代码更加简洁了。原创 2016-10-10 11:01:06 · 866 阅读 · 0 评论 -
handy : TcpServer
https://github.com/yedf/handy/blob/master/handy/conn.h https://github.com/yedf/handy/blob/master/handy/conn.cc如果你已经理解了EventBase、Channel、Poller,那么理解TcpServer应该不成问题。因为TcpServer内部使用的就是EventBase、Channe原创 2016-10-11 11:36:59 · 1018 阅读 · 0 评论 -
handy : TcpConn
https://github.com/yedf/handy/blob/master/handy/conn.henable_shared_from_thisstruct TcpConn: public std::enable_shared_from_this<TcpConn>, private noncopyableTcpConn继承了std::enable_shared_from_this<Tcp原创 2016-10-11 14:14:15 · 1229 阅读 · 0 评论 -
handy : EventBase, EventsImp, Poller, Channel
引言从handy的example/echo 的执行流程分析handy的实现细节。 https://github.com/yedf/handy/blob/master/handy/event_base.h https://github.com/yedf/handy/blob/master/handy/event_base.ccEventBasesstruct EventBases: pri原创 2016-10-10 14:44:01 · 1000 阅读 · 0 评论