Reverted breaking API changes, introduced new functions for connecting a socket with a given address family.