tags:

views:

46

answers:

0

I have client and server in unix machine, how can i find out my server is down and reconnect to server. without bringing my client down. I am doing connect (), but read() isiving me error Transport endpoint is already connected. I am using C++ in solaris.

Can i reconnect back when i start server without bringing client down ??

And what return value of read and connect should i check.