Hey everyone, 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++? I've got the Bonjour SDK installed but frankly, SDK seems a kind word for what it really is. I've had a good old google around for sample codes, snippets, tutorials, but got nowhere - can anyone help a fool out on this one?
A:
You can use the dns service discovery client.
The Bonjour Installer puts it in C:\Windows\system32\dns-sd.exe
Its synopsis is:
dns-sd.exe -R <Name> <Type> <Domain> <Port> [<TXT>...] (Register a service)
There isn't any easy to find indepth Bonjour windows documentation, (and it's a serious shame) but here's the manpage of it's mac equivalent:
http://developer.apple.com/.../dns-sd.1.html
There is also C:\Windows\system32\dnssd.dll
whose API, I suppose, conforms to this document:
http://developer.apple.com/.../dns_sd_h/
ZJR
2010-10-21 14:44:38