Re: [asio-users] retrieving local ip address
Brought to you by:
chris_kohlhoff
From: Christopher K. <ch...@ko...> - 2006-11-22 07:30:56
|
Themistoklis Bourdenas wrote: > I am running on WinXP pro sp2 and compile with VC8.0. > > Some corrections to my previous post. I don't get a "class not found" > exception from endpoint::address(), however it returns "0.0.0.0" (I was > trying to resolve a query with its retval which caused the exception). I > give you below a part of the code that I have the problem. The cout > prints "0.0.0.0", is this what it should do before no communication has > been done through the socket yet? Ah, 0.0.0.0 is the "any" address, and just means that the socket has not been bound to an individual network interface. That's normal (although the error message is a little confusing, but must just be what Windows decides to give you in that case). Cheers, Chris |