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

QNetworkInterface::allInterfaces docs do not mention error result

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.1.0 RC1
    • 5.0.1
    • Documentation, Network
    • None

    Description

      The docs for QNetworkInterface::allInterfaces () [static] say:
      Returns a listing of all the network interfaces found on the host machine.

      There should be a second sentence warning that: "In case it fails to fetch the list of interfaces, it will return a list of size 0." (This is true on Unix, for example when the process is out of file descriptors and the qt_safe_socket(AF_INET, SOCK_STREAM, IPPROTO_IP) returns EMFILE.)

      As written, the docs make it look like this routine can never fail.

      Attachments

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

        Activity

          People

            vertries Nico Vertriest (Inactive)
            jeffall Jeff Allen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes