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