logo       

retrieving local ip address: msg#00023

lib.boost.asio.user

Subject: retrieving local ip address

How do I you retrieve the IP Address of the local host using asio?
boost::asio::ip::hostname() only returns the host's name but I want an
ip address (not loopback 127.0.0.1).

I also tried to get the local_endpoint() from a udp socket but by
accessing endpoint's address() I get a "the specified class was not
found" exception.

Any ideas?

Themis


-------------------------------------------------------------------------
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