Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: localhost does not work but 127.0.0.1 does

$
0
0
Hi andy5739,

I'm not sure if this is your problem but quickly looking at the code I don't think you are initializing the HTTP_SERVICE_CONFIG_IP_LISTEN_PARAM correctly. You are trying to cast a pointer to a std::wstring to a PSOCKADDR and then calling sizeof on the std::string, I don't think either of these are correct. Take a look here for the documentation on PSOCKADDR.

Also since your question here is about HttpSetServiceConfiguration, which isn't part of the C++ REST SDK, I recommend you ask on the Windows forum.

Steve

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>