Hello
i always getting error that address is in use when using this code
Do you have some advice, or some good link to know why is this happen?
i always getting error that address is in use when using this code
void ListenerOpen()
{
try {
web::http::experimental::listener::http_listener listener(L"http://www.google.com/");
listener.support(([&](web::http::http_request request){ request.reply(web::http::status_codes::OK, U("Hello, World!")); }));
listener.open().wait();
}
catch (std::exception &e) {
std::cout << "caught error: " << e.what() << std::endl; cin.get();
}
}
error appear when i try to open listener. Do you have some advice, or some good link to know why is this happen?