dan

dan

  • NA
  • 15
  • 0

cf 2. tcpclient connect in thread with timer for timeout

Mar 19 2010 5:29 AM
Help help help. Compact Framework 2 on Windos Mobile 5 device with VS 2005. I'm beginning and i tryed to use tcpclient connect to server machine but the timeout of method is too long (44 sec). I think that if i encapsulate connect method in a thread and use a timercallback event after x second climb over the problem. After this timeout i test property connected of tcpclient and if is true run another code, then advise user for lost connection. It's possible ? if yes have some code sample to do this ?

Answers (4)