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

QHostInfo::fromName() method is returning only one IPv4 address where as the host name is having multiple IPv4 addresses

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • 4.7.0
    • 4.6.3, 4.7.0
    • Network
    • None
    • Symbian Wk20 (Qt 4.6.3) and Symbian Wk28 (Qt 4.7.0) baselines (PC environment is "Windows XP")

    Description

      I am testing QHostInfo::fromName() method on Symbian Wk20 (Qt 4.6.3) and Symbian Wk28 (Qt 4.7.0) baselines. I am testing this method with a host name which is having two IPv4 addresses. I observed that always this method is returning only one address. Even though the documentation of Qt 4.6 says that "QList<QHostAddress> QHostInfo::addresses () const" will "Returns the list of IP addresses associated with hostName()". This is not happening. I tested this method multiple times and found that consistently it is returning only one address.

      I tested this method with the same host name (having two IPv4 addresses) on Qt-Windows 2010.04 (Qt-Windows 4.6.3 libraries) also, but it is returning both the addresses consistently.

      So, this seems to be a bug on Symbian Qt 4.6.3 and Symbian Qt 4.7.0 libraries.

      I will be thankful to you if you can verify this bug and can give fix for the same.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ekoppen Eckhart Köppen
            baluvaranasi BalaSubrahmanyam Varanasi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes