logo       

Re: retrieving local ip address: msg#00027

lib.boost.asio.user

Subject: Re: retrieving local ip address

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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise