Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. MDNS query...
Qt 6.11 is out! See what's new in the release blog

MDNS query...

Scheduled Pinned Locked Moved General and Desktop
8 Posts 4 Posters 9.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    phamtv
    wrote on last edited by
    #1

    is there a sample for Multicast DNS available? I´ve search with no luck.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      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

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • P Offline
        P Offline
        phamtv
        wrote on last edited by
        #3

        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!

        1 Reply Last reply
        0
        • L Offline
          L Offline
          loladiro
          wrote on last edited by
          #4

          "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).

          1 Reply Last reply
          0
          • P Offline
            P Offline
            phamtv
            wrote on last edited by
            #5

            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?

            1 Reply Last reply
            0
            • L Offline
              L Offline
              loladiro
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                phamtv
                wrote on last edited by
                #7

                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?

                1 Reply Last reply
                0
                • alex_spataruA Offline
                  alex_spataruA Offline
                  alex_spataru
                  wrote on last edited by
                  #8

                  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.

                  1 Reply Last reply
                  2

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved