摘要: DNS解析 API文档参考英文文档:http://docstore.mik.ua/orelly/networking_2ndEd/dns/ch15_02.htmhttp://www.opensource.apple.com/source/libresolv/libresolv-46/ns_name.c一.工具函数集合(1)int ns_name_ntop(const u_char *src, char *dst, size_t dstsiz)功能: 该函数将网络域名格式【eg:3www5baidu3com0】转换为通常类型的域名格式【www.baidu.com】返回:写到buffer中的字节数 阅读全文
posted @ 2011-11-14 16:01 戴安澜式编程 阅读(3248) 评论(0) 推荐(0) 编辑