set the socket family opened in openConnectionSSL based on the address family
Use correct protocol family for SSL connections

Closes #33