Intrinsic timeouts don't really make sense with async sockets. Your code isn't blocked waiting for the send or receive to complete, so a timeout really doesn't have any place to go.
Normally, if you want to track timeouts on async socket calls, then another thread keeps track of how long the transaction has been in progress--a background thread using a WaitHandle to wait a specific amount of time Or this could be accomplished with a Timer.Tick event handler (Timers are a very limit resource). On Mon, 29 May 2006 08:17:48 -0400, Tony Hal <[EMAIL PROTECTED]> wrote: >The Socket class has the BeginTimeout and ReceiveTimeout properties for >which the doc says it's used in sync only. > >I am using async socket (BeginConnect, BeginSend, BeginReceive) and wonder >how we can set time out for the async operation. =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
