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

QTcpServer fais if listening on QHostAddress::Any

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.0.0
    • 5.0.0
    • Network
    • None

      QTcpServer server;
      server.listen(QHostAddress::Any, 0);
      Q_ASSERT(server.serverAddress() == QHostAddress::Any);

      hits the assert with current Qt5.

      server.serverAddress() in this case is currently returning "::%0" with protocol() set as IPv6.

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

            shkearns Shane Kearns
            andrunko Andre Moreira Magalhaes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes