Client :: isValid - Is client handle valid
The property might be called in order to check, whether a client handle is valid or not. Since invalid client handles will cause exceptions in many cases, sometimes, it might be better to check the client handle before calling a client handle function.
if ( myClient.isValid() && myClient.isConnected() )
printf("I am connected");
else
printf("I am not connected");
Return value: Success ( bool )
The value is true when the function was executed successfully. Otherwise the value is set to false.