本文介绍了linux的gethostbyname函数的独立源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在哪里可以获得源代码 gethostbyname
,可以在不链接linux的其他lib(只是套接字)的情况下使用
Where i can get source code of gethostbyname
which can be used without linking other libs(just sockets) for linux?
我发现这个:
但是这不行,解决
谢谢!
推荐答案
一个非阻塞DNS解析器库文件,支持存根和递归模式。
"A non-blocking DNS resolver library in a single .c file. Supports both stub and recursive modes."
这篇关于linux的gethostbyname函数的独立源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!