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. UDP socket problem

UDP socket problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpsysadminquestionworkspace
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.
  • A Offline
    A Offline
    Andrey Del Pozo
    wrote on last edited by
    #1

    Hello everybody, I hope someone can help me with this problem, i have tried a failed miserably. :^) I have a client/server app, each machine will have 2 LAN adapters (one for stream data at high rates and the other for control). The underling protocol is UDP. So in order to implement a response mechanism I use the sender address returned as an output parameter from the receivefrom() function. When working with 2 different PC there is no problem (both of them with 2 lan adap), the problem appears when I tried to run the apps in my developing machine to test one of the protocols, recivefrom() returns the address of the adapter listening, not the address of the sender…:wtf: so I can’t acknowledge the packet send. Does anybody has experienced this kind of problem, or something related? Is there any sockopt() that I can use? OS configuration? (by the way this runs in win2k). Thank you all. "I don't want to achieve immortality through my work... I want to achieve it through not dying." Woody Allen

    C 1 Reply Last reply
    0
    • A Andrey Del Pozo

      Hello everybody, I hope someone can help me with this problem, i have tried a failed miserably. :^) I have a client/server app, each machine will have 2 LAN adapters (one for stream data at high rates and the other for control). The underling protocol is UDP. So in order to implement a response mechanism I use the sender address returned as an output parameter from the receivefrom() function. When working with 2 different PC there is no problem (both of them with 2 lan adap), the problem appears when I tried to run the apps in my developing machine to test one of the protocols, recivefrom() returns the address of the adapter listening, not the address of the sender…:wtf: so I can’t acknowledge the packet send. Does anybody has experienced this kind of problem, or something related? Is there any sockopt() that I can use? OS configuration? (by the way this runs in win2k). Thank you all. "I don't want to achieve immortality through my work... I want to achieve it through not dying." Woody Allen

      C Offline
      C Offline
      CodeBeetle
      wrote on last edited by
      #2

      if you're testing client and server apps on the same machine then you will get problems, cos u cant create 2 udp sockets on the same port.


      CodeBeetle.Com


      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