Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Using Reliable UDP

Using Reliable UDP

Scheduled Pinned Locked Moved C / C++ / MFC
questiontools
2 Posts 2 Posters 0 Views 1 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
    V G
    wrote on last edited by
    #1

    HI!! for developing a download manager utility... i will have to use reliable udp to ensure that packets are not lost and are deliv'rd in proper order.... how do i implement it? V.G

    M 1 Reply Last reply
    0
    • V V G

      HI!! for developing a download manager utility... i will have to use reliable udp to ensure that packets are not lost and are deliv'rd in proper order.... how do i implement it? V.G

      M Offline
      M Offline
      Mohammad A Gdeisat
      wrote on last edited by
      #2

      Hi, You cant ensure that messages sent over UDP will arrive in the order they were sent in, however, you can add an int (order) to the message structure indicating the order of the sent message, then you can re-arrange these messages according to that number. To ensure that all messages arrive, implement a hand shaking mechanism. Something like: 1. Send a Message to the other end. 2. Mark it as "did not reach" i your program. 3. If the message reaches its destination, the destination sends an acknowledgment 4. After a predefined timout, if no acknowledment arrives, resend the message with the same order. Good luck

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups