Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 c++ 应用程序中使用http://code.google.com/p/mongoose/服务器。我正在寻找一种在 C++ 代码中查找域名的方法。mongoose 中是否有任何 api 来获取当前域名?
您可以通过调用来检索它 -
const char *value = mg_get_header(connection, "Host");