addr = new InetSocketAddress(RubyNumeric.fix2int(port));
} else if (host instanceof RubyFixnum) {
// passing in something like INADDR_ANY
int intAddr = RubyNumeric.fix2int(host);
RubyModule socketMod = context.getRuntime().getModule("Socket");
if (intAddr == RubyNumeric.fix2int(socketMod.fastGetConstant("INADDR_ANY"))) {
addr = new InetSocketAddress(InetAddress.getByName("0.0.0.0"), RubyNumeric.fix2int(port));
}
} else {
// passing in something like INADDR_ANY
addr = new InetSocketAddress(InetAddress.getByName(host.convertToString().toString()), RubyNumeric.fix2int(port));