private static final byte[] INADDR_BROADCAST = new byte[] {-1,-1,-1,-1}; // 255.255.255.255
private static final String ANY = "<any>";
private static final byte[] INADDR_ANY = new byte[] {0,0,0,0}; // 0.0.0.0
static AddressFamily addressFamilyFromArg(IRubyObject domain) {
AddressFamily addressFamily = null;
if(domain instanceof RubyString || domain instanceof RubySymbol) {
String domainString = domain.toString();
if (!domainString.startsWith("AF_")) domainString = "AF_" + domainString;
addressFamily = AddressFamily.valueOf(domainString);