set the socket family opened in openConnectionSSL based on the address family