支持使用协程和传统的异步回调方式进行编程。只支持Linux (Ubuntu, debian编译成功),暂时只能使用IPV4网络。
流式日志使用: LOG_INFO(g_logger) << "hello lithe";
封装了pthread
参考了腾讯微信的libco
用POSIX的ucontext实现的上下文切换
后续会支持n:m协程调度器
封装了可能会阻塞的系统函数
one loop per thread
定时器管理器使用的std::set管理定时器 自定义比较函数
可以按变长和定长方式写入字节
实现了varint编码和zigzag编码
封装了socket
封装的地址类
管理网络连接的类
EPOLLET模式,应用层缓冲区缓冲到来的数据和即将发送的数据
方便快速的构建服务器
为了二进制兼容性, 不使用继承而是使用组合的方式使用这个类。(muduo)
http协议解析
1.cd lithe/net
2.mkdir build
3.cd build && cmake ..
4.make