Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-10481

Looking up DNS SRV records without using the old Q3Dns classes.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 5.0.0
    • 4.6.2
    • Network: DNS
    • None
    • e54dc7c2b5b9aa14989f26a718eb99d7516af4a0

    Description

      It is not possible to perform an DNS SRV lookup without using the old Q3Dns classes.

      Qt 3 used its own implementation of the DNS protocol and provided a low-level QDns class. Qt 4's QHostInfo class uses the system's gethostbyname() function from a thread instead.

      The old QDns class has been renamed Q3Dns and moved to the Qt3Support library. The new QHostInfo class has a radically different API: It consists mainly of two static functions, one of which is blocking (QHostInfo::fromName()), the other non-blocking (QHostInfo::lookupHost()). See the QHostInfo class documentation for details.

      So QHostInfo is not a replacement for looking up SRV records using Q3Dns, when you actually need the protocol implementation to look up an SRV record.

      So it would be good if one could do this without requiring Qt3Support.

      Attachments

        1. QXmppSrvInfo.h
          2 kB
        2. QXmppSrvInfo.cpp
          7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            shkearns Shane Kearns
            xcm Martin Petersson (Inactive)
            Votes:
            7 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes