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

Check internet speed using Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 1.1k 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.
  • mandruk1331M Offline
    mandruk1331M Offline
    mandruk1331
    wrote on 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

    jsulmJ 1 Reply Last reply
    0
    • mandruk1331M mandruk1331

      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?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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

      mandruk1331M 1 Reply Last reply
      1
      • jsulmJ jsulm

        @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?

        mandruk1331M Offline
        mandruk1331M Offline
        mandruk1331
        wrote on 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

        jsulmJ 1 Reply Last reply
        0
        • mandruk1331M mandruk1331

          @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.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @mandruk1331 Then you could just always use UDP

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

          mandruk1331M 1 Reply Last reply
          0
          • jsulmJ jsulm

            @mandruk1331 Then you could just always use UDP

            mandruk1331M Offline
            mandruk1331M Offline
            mandruk1331
            wrote on 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

            • Login

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