Wednesday, 15 August 2012

c++ - Standalone source code of gethostbyname function for linux -



c++ - Standalone source code of gethostbyname function for linux -

where can source code of gethostbyname can used without linking other libs(just sockets) linux?

i found this: https://github.com/gnif/armt/blob/master/common/cdns.cc

but doesn't work, error when resolving

thanks!

dns resolution complicated. why not utilize library? utilize c-ares when need one.

if don't want utilize library can stuff source code files straight project although weird.

c++ linux dns

No comments:

Post a Comment