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. Qudpsocket
Forum Updated to NodeBB v4.3 + New Features

Qudpsocket

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 375 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.
  • S Offline
    S Offline
    satyanarayana143
    wrote on last edited by
    #1

    Dear friends,

    I am sending udp socket data every 1 minute with timer after some time I will stop sending. how to avoid that stopping like tcp any keepalive option available .How to solve that problem

    jsulmJ 1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      Since udp is connectionless there is no such thing as keepalive. It's not a session but discrete messages that may or may not be delivered. Writing to a udp socket should not block. If the datagram can be delivered, it will be. If not, then it should be thrown away by the lower layers.

      I light my way forward with the fires of all the bridges I've burned behind me.

      1 Reply Last reply
      3
      • nageshN Offline
        nageshN Offline
        nagesh
        wrote on last edited by
        #3

        @satyanarayana143

        I am sending udp socket data every 1 minute with timer after some time I will stop sending
        
        How to solve that problem
        

        not able to understand the problem statement here.
        You are sending data at interval 1 minutes and after some time you are stopping the data.
        what do you want to automate by keepalive?

        1 Reply Last reply
        0
        • S satyanarayana143

          Dear friends,

          I am sending udp socket data every 1 minute with timer after some time I will stop sending. how to avoid that stopping like tcp any keepalive option available .How to solve that problem

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

          @satyanarayana143 said in Qudpsocket:

          I will stop sending

          Do you mean you do not want to stop sending but for some reason it stops?
          Then please show your code.
          keepalive does not make sense for connectionless protocalls like UDP as already stated and your problem is most probably in your code.

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

          1 Reply Last reply
          2

          • Login

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