siddontang / libtnet Goto Github PK
View Code? Open in Web Editor NEWlibtnet is a tiny high performance c++ network lib, like tornado
License: MIT License
libtnet is a tiny high performance c++ network lib, like tornado
License: MIT License
Connection 应该有一个 InputBuffer 和一个 OutputBuffer . 在有数据进来时,先放到 InputBuffer, 再回调用户,如果处理完的清点。没处理完的,继续在 InputBuffer 里。
Connection 应该有几个变量,用于存放一次上层业务相关的数据。
希望 Http 增加 Chunked数据返回。
感谢作者,这是个挺好的库。
bug:
/net/libtnet/src/acceptor.cpp: In destructor ‘tnet::Acceptor::~Acceptor()’:
/net/libtnet/src/acceptor.cpp:38:27: error: ‘close’ was not declared in this scope
close(m_sockFd);
^
/net/libtnet/src/acceptor.cpp:40:24: error: ‘close’ was not declared in this scope
close(m_dummyFd);
^
/net/libtnet/src/acceptor.cpp: In member function ‘void tnet::Acceptor::onAccept(tnet::IOLoop*, int)’:
/net/libtnet/src/acceptor.cpp:98:32: error: ‘close’ was not declared in this scope
close(m_dummyFd);
^
make[2]: *** [src/CMakeFiles/tnet.dir/acceptor.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/tnet.dir/all] Error 2
make: *** [all] Error 2
都是报错的
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.