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

QUdpSocket::readDatagram() returns null QHostAddress

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.10.0
    • Network
    • None
    • Windows 10
    • 6a9d076e87f0c8aa4fb49bbcc2f56eefd85af2e3

      When reading a UDP datagram with readDatagram the QHostAddress is not being set correctly with 5.10.0. This works correctly in 5.9.2.

      I have attached a test case which demonstrates the problem:

      1. Run udptest --server
      2. Run udptest
      3. Observe that under 5.9.2 the output of the server will include the ip of the client, while under 5.10.0 an empty string will output where the ip address should be.

        1. udptest.cpp
          1 kB
          James Emerton
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            tpochep Timur Pocheptsov
            james_emerton James Emerton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes