HI All.

I have written a simple TCP client thats running in a thread.

I want to know what the best way of detecting if the server is not present
is.

I am doing a "repeat until"  to read the received data from the socket. I
was looking at the "lasterror" after it does a "socket. RecvString(1000);"
but the last error could be timedout which it is, it timed out reading the
buffer.

However, I really want to "monitor" if the connection is open or closed. 

I was looking at the OnStatus event, but the error in that is also timedout
from the above.

 

Can anyone suggest a good method/practice to monitor the connecton?

 

Thanks, Jeremy

 

 

 

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to