Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Question about Sockets

Question about Sockets

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 500 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    v3v439bm0
    wrote on last edited by v3v439bm0
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      What local TCP adress should be displayed when no connection is up when you call QTcpSocket::localAdress()? And why do you want to use bind() at all for a QTcpSocket?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • V Offline
        V Offline
        v3v439bm0
        wrote on last edited by
        #3
        This post is deleted!
        Pablo J. RoginaP 1 Reply Last reply
        0
        • V v3v439bm0

          This post is deleted!

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @v3v439bm0 have you checked documentation and examples for QUdpSocket?

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          V 1 Reply Last reply
          2
          • Pablo J. RoginaP Pablo J. Rogina

            @v3v439bm0 have you checked documentation and examples for QUdpSocket?

            V Offline
            V Offline
            v3v439bm0
            wrote on last edited by v3v439bm0
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              QTcpSocket::connectToHost is an async connection. You won't get a local adress until it is connected...

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              V 1 Reply Last reply
              4
              • Christian EhrlicherC Christian Ehrlicher

                QTcpSocket::connectToHost is an async connection. You won't get a local adress until it is connected...

                V Offline
                V Offline
                v3v439bm0
                wrote on last edited by
                #7
                This post is deleted!
                aha_1980A 1 Reply Last reply
                0
                • V v3v439bm0

                  This post is deleted!

                  aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @v3v439bm0 with the button Topic Tools.

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved