> and unexpected sender? Should I consider a pending
> request as failed or should I just ignore such packets?

Use ReceiveFrom to know from where the packet is comming and throw it away
if you don't like the sender.

> Also, if I do not use some kind of a wait function
> in order to make a request blocking (like WaitUntilReady),
> it's mandatory to use a timer, correct?

Sorry, I don't understand.

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be

----- Original Message ----- 
From: "Arno Garrels" <[EMAIL PROTECTED]>
To: "ICS support mailing" <twsocket@elists.org>
Sent: Thursday, August 17, 2006 10:27 AM
Subject: [twsocket] UDP request/response proto


> Hello,
>
> I UDP sendto a request datagram to the server,
> when OnDataAvailable triggers I call ReceiveFrom()
> in order to read the response.
> But I think OnDataAvailable is being triggered when
> any datagram addressed to that port arrives, even
> datagrams not sent by the destination server. How
> to handle this situation when some data arrive from
> and unexpected sender? Should I consider a pending
> request as failed or should I just ignore such packets?
>
> Also, if I do not use some kind of a wait function
> in order to make a request blocking (like WaitUntilReady),
> it's mandatory to use a timer, correct?
>
> ---
> Arno Garrels [TeamICS]
> http://www.overbyte.be/eng/overbyte/teamics.html
>
> -- 
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to