开发者

how to get domain name in mongoose server c++

I am using http://code.google.com/p/mongoose/ server inside my c++ application. I am looking a way to find domain name in c++ code. Is there any api in m开发者_如何学编程ongoose to get current domain name ?


You can retrieve it by calling -

const char *value = mg_get_header(connection, "Host");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜