d2school / da4qi4 Goto Github PK
View Code? Open in Web Editor NEWa cpp Web Server
Home Page: https://www.d2school.com
License: Apache License 2.0
a cpp Web Server
Home Page: https://www.d2school.com
License: Apache License 2.0
/Downloads/daqi/da4qi4/src/client/connection_client.cpp: In member function ‘da4qi4::errorcode da4qi4::Client::Connection::do_resolver()’:
/Downloads/daqi/da4qi4/src/client/connection_client.cpp:214:17: error: ‘class boost::asio::ip::basic_resolver_iteratorboost::asio::ip::tcp’ has no member named ‘empty’
if (results.empty())
^
/Downloads/daqi/da4qi4/src/client/connection_client.cpp:221:43: error: ‘class boost::asio::ip::basic_resolver_iteratorboost::asio::ip::tcp’ has no member named ‘cbegin’
this->_server_endpoint = *results.cbegin();
按照1.4的例子来的,一开始以为是环境问题,专门换了一台全新的vps测试(ubuntu18.04 boost1.65.1 cmake3.10.2 gcc7.4.0)还是一样
`auto app = svc->DefaultApp(); //取出自动生成的默认应用对象
auto default_name = app->GetName();
if(!app->InitLogger(log_dir + "logs/", log::Level::debug))
{
std::cerr << "Create "<< default_name <<" logger fail." << std::endl;
}
log::App(default_name)->info("default_name app name: "+default_name);
log::Server()->info("default_name app name: "+default_name);
app->AddHandler(_GET_, "/app", [default_name](Context ctx)
{
std::string name = ctx->Req("name");
std::string html = "<html><body><h1>Hello " + name + "!</h1></body></html>";
ctx->Res().ReplyOk(html);
ctx->Pass();
log::App(default_name)->info("response "+html);
});`
执行都没有问题,但是没有app的日志输出。不知道是什么原因
这个库可以任意使用吗?商用有什么限制吗
后面调用, 显示Acceptor error:Too many open files
初步估计是不是有的get链接超时后没有清空, 导致线程池没有办法多创建并响应新的get链接
有顺利编译过的吗
post指令怎么使用呢, 能不能出一段readme
我直接像get一样去注册后访问, 一直是not found
这个库,跟muduo库有什么区别吗,有什么吗?小白,想问一下,学习学习
boost什么版本啊
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.