Allow socket family to be chosen