如何在Visual C ++中宣传Bonjour服务 [英] How to advertise a Bonjour Service in Visual C++

查看:122
本文介绍了如何在Visual C ++中宣传Bonjour服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图弄清楚这是否可能,但是通过Visual C ++宣传Bonjour服务的最简单方法是什么?

I'm trying to figure out if this is even possible, but what's the simplest way of advertising a Bonjour service through Visual C++?

推荐答案

您可以使用 DNS服务发现客户端: dns-sd .

Windows Bonjour安装程序将其放入C:\Windows\system32\dns-sd.exe

它的提要是:

Its synopsis is:

 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

There isn't any easy way to find indepth Bonjour windows documentation, (and it's a serious shame) but here's the manpage for its mac equivalent:
http://developer.apple.com/.../dns-sd.1.html

还有C:\Windows\system32\dnssd.dll,其API,很不幸,我不得不假设,该API符合以下文档:
http://developer.apple.com/.../dns_sd_h/

There is also C:\Windows\system32\dnssd.dll whose API, I unfortunately have to suppose, conforms to this document:
http://developer.apple.com/.../dns_sd_h/

这篇关于如何在Visual C ++中宣传Bonjour服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆