Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Programming problem with Visual C WinSocket

Status
Not open for further replies.
Y

yapple

Guest
Newbie level 1
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
 

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top