Read up on your protocols.  UDP is not TCP.  There is NO guarantee of order
with UDP.

Read this link or Google others:

http://en.wikipedia.org/wiki/User_Datagram_Protocol

Here is a big hint from the article:

*NO implicit hand-shaking for guaranteeing reliability, ordering, or data
integrity . Thus, UDP provides an unreliable service and datagrams may
arrive out of order, appear duplicated, or go missing without notice.
*
If you are doing UDP, then it is up to YOUR program to handle reliability,
ordering and data integrity.

If you don't know why you need UDP, then don't use it and stick to TCP.


On Wed, Jun 23, 2010 at 3:19 AM, Jose Garcia <[email protected]> wrote:

> Hello,
>
> I'm using the UdpClient (.net 3.5) class to comunicate 3 devices with
> the pc. The pc asks and the devices send the answer to pc by UDP
> protocol.
>
> My problem is that PC receives mixed packages. That is to say, the PC
> receives a datagram from one ip that has sent another ip.
>
> Summarizing, the "bytesReceived" and the "sRemoteHost" on the
> "callback function" does not correspond to the packages seen in a
> sniffer.
>
> Any help?
>
> Thanks.
>

Reply via email to