i'm having one problem, converting a program that uses gethostbyname to
on a machine without network connection (only loopback), gethostbyname
behaves quite differently from udp::resolver::query: resolving strings
like "127.0.0.1" or "localhost", boost.asio gives me the error message
Host not found (authoritative), while gethostbyname performs the
struct hostent *he = gethostbyname(hostname);
udp::resolver::query query(udp::v4(), hostname, "");
udp::resolver::iterator iterator = resolver.resolve(query, err_c);
any idea, how to work around this?
Get latest updates about Open Source Projects, Conferences and News.