Re: Determine udp packet source detail with Winsock

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Nicolas (johnyspeed_at_bicycle.com)
Date: 06/09/04


Date: Wed, 09 Jun 2004 02:29:07 -0700

Thanks Bob!

I haven't seen that feature documented anywhere yet! Is it?

I have played with it a bit, and it seems if you are not aware of it, it
could quite easily catch one out. Every time a packet is received, the
RemoteHostIP and RemotePort are updated to match data in the received
packet. An unexpected packet from an unexpected source could potentially
divert all all your future traffic there instead of your originally set
destination! One therefore needs to set the remotehost and remoteport
before every SendData call - is this logic correct?

Thanks,
Nicolas
http://www20.brinkster.com/intefacesa/

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!