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

[REG 5.7.0 -> 5.8.0] QUdpSocket bind fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 5.8.0
    • Network
    • None
    • Ubuntu 14.04 64bit
    • c0157a9f035a27a3ba20cab0ca3ca1c6e78f0b14

    Description

      Simple code to bind a QUdpSocket to a port works on Qt 5.7.0 and fails on Qt 5.8.0

      QHostAddress m_netGroup = QHostAddress("224.2.127.254");
      QUdpSocket *m_udpsocket = new QUdpSocket(this);
      
      if (m_udpsocket->bind(QHostAddress::AnyIPv4, 9875, QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint) == false)
           qDebug() << "ERROR binding socket failed";
      

      The errorString() method says: "The proxy type is invalid for this operation"

      Attachments

        Issue Links

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

          Activity

            People

              tpochep Timur Pocheptsov
              mcallegari79 Massimo Callegari
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes