Programming problem with Visual C WinSocket

Status
Not open for further replies.
Y

yapple

Guest
It can receice UDP packets from another PC in the local network at any time. But sometimes it cannot receive UDP packets from remote PC outside the local network.
 

Yes it is possible
UDP doesn't have guaranteed delivery like TCP. When a package is corrupt, it's gone! You can either use TCP or build your own protocol to be sure every packet is receiven (although the sliding window techniques from TCP should do that just fine if I remember correctly)
In your local network the switches probably won't drop packets. That's why you wont miss anything there. On the internet, some links can have heavy usage so some packets are dropped.

It's not a Visual C or Winsock problem. Even a good and stable Linux system would probably have the same problem ;-)

Antharax
 

Assumption. Check gateway address adjustment on remote PC.
 

Yes, but when a question is asked like this,
what else can you expect but assumptions.

is "sometimes" at certain times, certain packets or from certain pc's.
 

yes. i agree. only added software protocol like doubling or confirm may help
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…