CF 1.0 Socket Receive Timeout

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to determine the best way to terminate a synchronous socket
receive. Since you cannot specify a timeout value you have to wait until an
execption is thrown.


I have tried using a timer and then shutting down and closing the socket but
it does takes several seconds to return.

Any ideas would be appriecated.
 
use Socket.Poll(...) method.
You can specify timeout for howlong to wait.
 

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

Similar Threads


Back
Top