作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在尝试弄清楚这是否可能,但通过 Visual C++ 宣传 Bonjour 服务的最简单方法是什么?
最佳答案
您可以使用 DNS 服务发现 客户端:dns-sd。
Windows Bonjour Installer 将它放在 C:\Windows\system32\dns-sd.exe
它的概要是:
dns-sd -R name type domain port [key=value ...]
dns-sd -B type domain
dns-sd -L name type domain
没有任何简单的方法可以找到深入的 Bonjour windows 文档,(这是一个严重的耻辱)但这是它的 mac 对应的联机帮助页:
http://developer.apple.com/.../dns-sd.1.html
还有 C:\Windows\system32\dnssd.dll
其 API,不幸的是我不得不假设,符合此文档:
http://developer.apple.com/.../dns_sd_h/
关于windows - 如何在 Visual C++ 中宣传 Bonjour 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3463218/
我是一名优秀的程序员,十分优秀!