}
private IRubyObject addrFor(ThreadContext context, InetSocketAddress addr) {
Ruby r = context.getRuntime();
IRubyObject[] ret = new IRubyObject[4];
ret[0] = r.newString("AF_INET");
ret[1] = r.newFixnum(addr.getPort());
String hostAddress = addr.getAddress().getHostAddress();
if (doNotReverseLookup(context)) {
ret[2] = r.newString(hostAddress);
} else {