tcpClient.ReceiveTimeout property

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

Guest

Any alternative for tcpClient.ReceiveTimeout property in compact framework? My PDA Client keeps waiting for 25-30 if server is not available !!!?? How to do receivetime out in Compact Framework?


Harsh
 
You could do it from another thread than the UI thread and, in the UI
thread, start a timer when you start the receive thread. If the timer fires
before the receive thread indicates data back to the UI thread, declare a
time-out, close the socket from underneath the receive thread and indicate
an error to the user. I don't think you can control most time-out times in
Windows CE...

Paul T.

newbie said:
Any alternative for tcpClient.ReceiveTimeout property in compact
framework? My PDA Client keeps waiting for 25-30 if server is not available
!!!?? How to do receivetime out in Compact Framework?
 
Can you give an example howto declare a timeout and close the socket

I made a close function that calls the socket close function but that doesn,t work

regards pieter
 

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