Unify behavior of connect
Java socket returns a boolean that is false if the endpoint is not accessible. Check if the C++ connect can do the same thing.
Java socket returns a boolean that is false if the endpoint is not accessible. Check if the C++ connect can do the same thing.