socket receiveTimeout and sendTimeout properties

  • Thread starter Thread starter David
  • Start date Start date
D

David

VS 2005 help says they are only for the synchronous send and receive
methods. So what about the asynchronous calls? How are timeouts handled?
 
found example of using a waithandle like
myManualResetEvent.WaitOne(timeoutVal, false) after calling the the begin
portion of the asynch operation... the callback signals the waithandle when
done so essentially this establishes a timeout mechanism.

works for me. Is this pretty much how it should be done?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top