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. Check internet speed using Qt
Forum Updated to NodeBB v4.3 + New Features

Check internet speed using Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 1.2k Views
  • 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.
  • M Offline
    M Offline
    mandruk1331
    wrote on 12 May 2017, 12:20 last edited by
    #1

    My project is almost finished and I want to know is there is a way to check the internet speed? I want to do that so the program could choose which protocol is better to use if the speed of the internet is not that good then use the UDP protocol if the speed is ok then use the TCP protocol, is there's a way in Qt to check that?

    Mandruk1331

    J 1 Reply Last reply 12 May 2017, 12:24
    0
    • M mandruk1331
      12 May 2017, 12:20

      My project is almost finished and I want to know is there is a way to check the internet speed? I want to do that so the program could choose which protocol is better to use if the speed of the internet is not that good then use the UDP protocol if the speed is ok then use the TCP protocol, is there's a way in Qt to check that?

      J Online
      J Online
      jsulm
      Lifetime Qt Champion
      wrote on 12 May 2017, 12:24 last edited by
      #2

      @mandruk1331 Why do you want to use UDP if connection is bad? UDP means that you can loose packets. What are your requirements: is it OK if some packets get lost?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply 12 May 2017, 12:25
      1
      • J jsulm
        12 May 2017, 12:24

        @mandruk1331 Why do you want to use UDP if connection is bad? UDP means that you can loose packets. What are your requirements: is it OK if some packets get lost?

        M Offline
        M Offline
        mandruk1331
        wrote on 12 May 2017, 12:25 last edited by
        #3

        @jsulm it's ok. Sorry I forgot to mention, that I will use these protocols in a video stream. My camera will send the data to the server side to validate if the frame from the video is valid.

        Mandruk1331

        J 1 Reply Last reply 12 May 2017, 12:25
        0
        • M mandruk1331
          12 May 2017, 12:25

          @jsulm it's ok. Sorry I forgot to mention, that I will use these protocols in a video stream. My camera will send the data to the server side to validate if the frame from the video is valid.

          J Online
          J Online
          jsulm
          Lifetime Qt Champion
          wrote on 12 May 2017, 12:25 last edited by
          #4

          @mandruk1331 Then you could just always use UDP

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          M 1 Reply Last reply 12 May 2017, 12:29
          0
          • J jsulm
            12 May 2017, 12:25

            @mandruk1331 Then you could just always use UDP

            M Offline
            M Offline
            mandruk1331
            wrote on 12 May 2017, 12:29 last edited by
            #5

            @jsulm that's true but as you said I can loose packets and what if I will loose 5-10 frame, that's not good for me. At the moment I have implemented tcp transmission of the frame and it looks promising, but it needs more testing, if the speed will be really low, then I will use UDP instead of TCP

            Mandruk1331

            1 Reply Last reply
            0

            2/5

            12 May 2017, 12:24

            • Login

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