gpt4 book ai didi

windows - 如何在 Visual C++ 中宣传 Bonjour 服务

转载 作者:可可西里 更新时间:2023-11-01 13:24:27 27 4
gpt4 key购买 nike

我正在尝试弄清楚这是否可能,但通过 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com