MDNS query...
-
is there a sample for Multicast DNS available? I´ve search with no luck.
-
If a "QUdpSocket":http://doc.qt.nokia.com/4.7/qudpsocket.html is sufficient there is an "example ":http://doc.qt.nokia.com/4.7/network-broadcastsender.html
-
okay... it looks like I found what I need ... http://doc.qt.nokia.com/qq/qq23-bonjour.html#browsingthroughavailablebonjourservices . I´ve grabbed the project that I need but what I am missing in the project is a link to the dns_sd.h (an opensource bonjour library). What package do I need to get this and how can I get this into my project?
Thanks!
-
"Apple":http://developer.apple.com/opensource/ . You'll have to build it yourself.
EDIT: There's also http://avahi.org/ , if you'd rather use that (it is available as a package on most linux distributions).
-
I will eventually need both package (Window´s and Linux).. Exactly what package do I need to install for linux? I go to synaptic manager and it contains a whole bunch of avahi packages?
-
I guess you'll at least need libavahi-coreX (where X may vary, depending on how old the distribution package is). Also, you probably already have it, since it comes pre-installed on Debian/Ubuntu. You might also want to have a look at the Qt integration.
-
I installed a package and got the dns_sd.h file. The dns_sd.h is located in the /usr/include folder and the libdns_sd.so file is located in the /usr/lib folder. I added @!mac:x11:LIBS += -L$/usr/lib -ldns_sd@ in my .pro file but when I build the project, I get an error indicating undefined reference to `DNSServiceRefDeallocate'. Yet when I right click on the function and select follow symbol under cursor, it goes to the correct declaration in the .h file. What am I doing wrong?
-
Well this topic is really old. I am just posting this for those that may need it.
I have created a simple mDNS library for Qt, it does not have any dependencies except the network module. If you are interested in trying it, you can find it here.