bool is_alive( )
[Declared in "../apps/compressed_io/kdu_client.h"]
Returns true so long as the network management thread is alive. This condition is established by a call to connect and terminated by calls to one of close or disconnect or by the server itself terminating the connection.
This enables you to check whether or not a connection has been dropped (or the original connection attempt failed). In either case, is_active returns true and is_alive returns false.