public class org.jruby.ext.socket.SocketUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ext.socket.SocketUtils
super_class: java.lang.Object
{
private static final java.util.regex.Pattern STRING_IPV4_ADDRESS_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int IPV4_HOST_GROUP;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final int IPV4_PORT_GROUP;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 5
private static final java.lang.String BROADCAST;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "<broadcast>"
private static final byte[] INADDR_BROADCAST;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String ANY;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "<any>"
private static final byte[] INADDR_ANY;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: ldc "((.*)\\/)?([\\.0-9]+)(:([0-9]+))?"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic org.jruby.ext.socket.SocketUtils.STRING_IPV4_ADDRESS_PATTERN:Ljava/util/regex/Pattern;
1: iconst_4
newarray 8
dup
iconst_0
iconst_m1
bastore
dup
iconst_1
iconst_m1
bastore
dup
iconst_2
iconst_m1
bastore
dup
iconst_3
iconst_m1
bastore
putstatic org.jruby.ext.socket.SocketUtils.INADDR_BROADCAST:[B
2: iconst_4
newarray 8
putstatic org.jruby.ext.socket.SocketUtils.INADDR_ANY:[B
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/socket/SocketUtils;
public static org.jruby.runtime.builtin.IRubyObject gethostname(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 1
start local 1 1: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokestatic java.net.InetAddress.getLocalHost:()Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostName:()Ljava/lang/String;
invokestatic org.jruby.RubyString.newInternalFromJavaExternal:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/RubyString;
2: areturn
3: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.Ruby
StackMap stack: java.net.UnknownHostException
pop
4: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
iconst_4
newarray 8
invokestatic java.net.InetAddress.getByAddress:([B)Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostName:()Ljava/lang/String;
invokestatic org.jruby.RubyString.newInternalFromJavaExternal:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/RubyString;
5: areturn
6: StackMap locals:
StackMap stack: java.net.UnknownHostException
pop
7: aload 1
ldc "gethostname: name or service not known"
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 context Lorg/jruby/runtime/ThreadContext;
1 8 1 runtime Lorg/jruby/Ruby;
Exception table:
from to target type
1 2 3 Class java.net.UnknownHostException
4 5 6 Class java.net.UnknownHostException
MethodParameters:
Name Flags
context
public static org.jruby.runtime.builtin.IRubyObject gethostbyaddr(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 2
aload 2
aload 1
iconst_0
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.toString:()Ljava/lang/String;
invokestatic org.jruby.util.io.Sockaddr.addressFromString:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getCanonicalHostName:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
astore 3
start local 3 2: aload 2
invokevirtual org.jruby.Ruby.newArray:()Lorg/jruby/RubyArray;
astore 4
start local 4 3: aload 2
iconst_2
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
astore 5
start local 5 4: aload 1
iconst_0
aaload
astore 6
start local 6 5: aload 2
aload 3
aload 4
aload 5
aload 6
invokestatic org.jruby.RubyArray.newArray:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 context Lorg/jruby/runtime/ThreadContext;
0 6 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 6 2 runtime Lorg/jruby/Ruby;
2 6 3 ret0 Lorg/jruby/runtime/builtin/IRubyObject;
3 6 4 ret1 Lorg/jruby/runtime/builtin/IRubyObject;
4 6 5 ret2 Lorg/jruby/runtime/builtin/IRubyObject;
5 6 6 ret3 Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
args
public static org.jruby.runtime.builtin.IRubyObject getservbyname(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 1
iconst_0
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.toString:()Ljava/lang/String;
astore 3
start local 3 2: aload 1
arraylength
iconst_1
if_icmpne 3
ldc "tcp"
goto 4
StackMap locals: org.jruby.Ruby java.lang.String
StackMap stack:
3: aload 1
iconst_1
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.toString:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
4: astore 4
start local 4 5: aload 3
aload 4
invokestatic jnr.netdb.Service.getServiceByName:(Ljava/lang/String;Ljava/lang/String;)Ljnr/netdb/Service;
astore 5
start local 5 6: aload 5
ifnull 9
7: aload 5
invokevirtual jnr.netdb.Service.getPort:()I
istore 6
start local 6 8: goto 13
end local 6 9: StackMap locals: java.lang.String jnr.netdb.Service
StackMap stack:
aload 3
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 6
start local 6 10: goto 13
end local 6 StackMap locals:
StackMap stack: java.lang.NumberFormatException
11: pop
12: aload 2
new java.lang.StringBuilder
dup
ldc "no such service "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
start local 6 13: StackMap locals: int
StackMap stack:
aload 2
iload 6
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 context Lorg/jruby/runtime/ThreadContext;
0 14 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 14 2 runtime Lorg/jruby/Ruby;
2 14 3 name Ljava/lang/String;
5 14 4 proto Ljava/lang/String;
6 14 5 service Ljnr/netdb/Service;
8 9 6 port I
10 11 6 port I
13 14 6 port I
Exception table:
from to target type
9 10 11 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
context
args
public static org.jruby.runtime.builtin.IRubyObject pack_sockaddr_in(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic org.jruby.util.io.Sockaddr.pack_sockaddr_in:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 port Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 host Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
port
host
public static org.jruby.RubyArray unpack_sockaddr_in(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.jruby.util.io.Sockaddr.unpack_sockaddr_in:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 addr Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
addr
public static org.jruby.runtime.builtin.IRubyObject pack_sockaddr_un(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.asJavaString:()Ljava/lang/String;
astore 2
start local 2 1: aload 0
aload 2
invokestatic org.jruby.util.io.Sockaddr.pack_sockaddr_un:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 context Lorg/jruby/runtime/ThreadContext;
0 2 1 filename Lorg/jruby/runtime/builtin/IRubyObject;
1 2 2 path Ljava/lang/String;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
filename
public static org.jruby.runtime.builtin.IRubyObject gethostbyname(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokestatic org.jruby.ext.socket.SocketUtils.getRubyInetAddresses:(Lorg/jruby/util/ByteList;)[Ljava/net/InetAddress;
iconst_0
aaload
astore 3
start local 3 2: aload 2
aload 3
invokevirtual java.net.InetAddress.getCanonicalHostName:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
astore 4
start local 4 3: aload 2
invokevirtual org.jruby.Ruby.newArray:()Lorg/jruby/RubyArray;
astore 5
start local 5 4: aload 2
iconst_2
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
astore 6
start local 6 5: aload 2
new org.jruby.util.ByteList
dup
aload 3
invokevirtual java.net.InetAddress.getAddress:()[B
invokespecial org.jruby.util.ByteList.<init>:([B)V
invokevirtual org.jruby.Ruby.newString:(Lorg/jruby/util/ByteList;)Lorg/jruby/RubyString;
astore 7
start local 7 6: aload 2
aload 4
aload 5
aload 6
aload 7
invokestatic org.jruby.RubyArray.newArray:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
7: areturn
end local 7 end local 6 end local 5 end local 4 end local 3 8: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby
StackMap stack: java.net.UnknownHostException
pop
9: aload 2
ldc "gethostbyname: name or service not known"
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 context Lorg/jruby/runtime/ThreadContext;
0 10 1 hostname Lorg/jruby/runtime/builtin/IRubyObject;
1 10 2 runtime Lorg/jruby/Ruby;
2 8 3 addr Ljava/net/InetAddress;
3 8 4 ret0 Lorg/jruby/runtime/builtin/IRubyObject;
4 8 5 ret1 Lorg/jruby/runtime/builtin/IRubyObject;
5 8 6 ret2 Lorg/jruby/runtime/builtin/IRubyObject;
6 8 7 ret3 Lorg/jruby/runtime/builtin/IRubyObject;
Exception table:
from to target type
1 7 8 Class java.net.UnknownHostException
MethodParameters:
Name Flags
context
hostname
public static org.jruby.runtime.builtin.IRubyObject getaddrinfo(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 2: aload 0
aload 1
new org.jruby.ext.socket.SocketUtils$1
dup
aload 2
aload 0
aload 3
invokespecial org.jruby.ext.socket.SocketUtils$1.<init>:(Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Ljava/util/List;)V
invokestatic org.jruby.ext.socket.SocketUtils.buildAddrinfoList:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/ext/socket/SocketUtils$AddrinfoCallback;)V
3: aload 2
aload 3
invokevirtual org.jruby.Ruby.newArray:(Ljava/util/List;)Lorg/jruby/RubyArray;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 context Lorg/jruby/runtime/ThreadContext;
0 4 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 4 2 runtime Lorg/jruby/Ruby;
2 4 3 l Ljava/util/List<Lorg/jruby/runtime/builtin/IRubyObject;>;
MethodParameters:
Name Flags
context final
args
public static java.util.List<org.jruby.ext.socket.Addrinfo> getaddrinfoList(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 2: aload 0
aload 1
new org.jruby.ext.socket.SocketUtils$2
dup
aload 3
aload 2
invokespecial org.jruby.ext.socket.SocketUtils$2.<init>:(Ljava/util/List;Lorg/jruby/Ruby;)V
invokestatic org.jruby.ext.socket.SocketUtils.buildAddrinfoList:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/ext/socket/SocketUtils$AddrinfoCallback;)V
3: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 context Lorg/jruby/runtime/ThreadContext;
0 4 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 4 2 runtime Lorg/jruby/Ruby;
2 4 3 l Ljava/util/List<Lorg/jruby/ext/socket/Addrinfo;>;
Signature: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/util/List<Lorg/jruby/ext/socket/Addrinfo;>;
MethodParameters:
Name Flags
context
args
public static void buildAddrinfoList(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[], org.jruby.ext.socket.SocketUtils$AddrinfoCallback);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/ext/socket/SocketUtils$AddrinfoCallback;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=19, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 1
iconst_0
aaload
astore 4
start local 4 2: aload 1
iconst_1
aaload
astore 5
start local 5 3: aload 4
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 4
aload 4
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.isEmpty:()Z
ifne 4
iconst_0
goto 5
StackMap locals: org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject
StackMap stack:
4: iconst_1
StackMap locals:
StackMap stack: int
5: istore 6
start local 6 6: aload 1
arraylength
iconst_2
if_icmple 7
aload 1
iconst_2
aaload
goto 8
StackMap locals: int
StackMap stack:
7: aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
StackMap locals:
StackMap stack: org.jruby.runtime.builtin.IRubyObject
8: astore 7
start local 7 9: aload 1
arraylength
iconst_3
if_icmple 10
aload 1
iconst_3
aaload
goto 11
StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
10: aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
StackMap locals:
StackMap stack: org.jruby.runtime.builtin.IRubyObject
11: astore 8
start local 8 12: aload 1
arraylength
iconst_4
if_icmple 13
aload 1
iconst_4
aaload
pop
goto 14
StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
13: aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
pop
14: StackMap locals:
StackMap stack:
aload 1
arraylength
iconst_5
if_icmple 15
aload 1
iconst_5
aaload
goto 16
StackMap locals:
StackMap stack:
15: aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
StackMap locals:
StackMap stack: org.jruby.runtime.builtin.IRubyObject
16: astore 9
start local 9 17: aload 1
arraylength
bipush 6
if_icmple 18
aload 1
bipush 6
aaload
goto 19
StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
18: aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
StackMap locals:
StackMap stack: org.jruby.runtime.builtin.IRubyObject
19: astore 10
start local 10 20: aload 0
aload 10
invokestatic org.jruby.ext.socket.RubyIPSocket.doReverseLookup:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/lang/Boolean;
astore 11
start local 11 21: aload 7
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 22
aconst_null
goto 23
StackMap locals: org.jruby.runtime.builtin.IRubyObject java.lang.Boolean
StackMap stack:
22: aload 7
invokestatic org.jruby.ext.socket.SocketUtils.addressFamilyFromArg:(Lorg/jruby/runtime/builtin/IRubyObject;)Ljnr/constants/platform/AddressFamily;
StackMap locals:
StackMap stack: jnr.constants.platform.AddressFamily
23: astore 12
start local 12 24: aload 8
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 25
getstatic jnr.constants.platform.Sock.SOCK_STREAM:Ljnr/constants/platform/Sock;
goto 26
StackMap locals: jnr.constants.platform.AddressFamily
StackMap stack:
25: aload 8
invokestatic org.jruby.ext.socket.SocketUtils.sockFromArg:(Lorg/jruby/runtime/builtin/IRubyObject;)Ljnr/constants/platform/Sock;
StackMap locals:
StackMap stack: jnr.constants.platform.Sock
26: astore 13
start local 13 27: aload 5
instanceof org.jruby.RubyString
ifeq 29
28: aload 0
iconst_1
anewarray org.jruby.runtime.builtin.IRubyObject
dup
iconst_0
aload 5
aastore
invokestatic org.jruby.ext.socket.SocketUtils.getservbyname:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 5
29: StackMap locals: jnr.constants.platform.Sock
StackMap stack:
aload 5
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 30
iconst_0
goto 31
StackMap locals:
StackMap stack:
30: aload 5
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToInteger:()Lorg/jruby/RubyInteger;
invokevirtual org.jruby.RubyInteger.getLongValue:()J
l2i
StackMap locals:
StackMap stack: int
31: istore 14
start local 14 32: aload 9
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 33
iconst_0
goto 34
StackMap locals: int
StackMap stack:
33: aload 9
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
StackMap locals:
StackMap stack: int
34: istore 15
start local 15 35: aconst_null
astore 16
start local 16 36: iload 15
iconst_1
if_icmpne 41
iload 6
ifeq 41
37: aload 12
getstatic jnr.constants.platform.AddressFamily.AF_INET6:Ljnr/constants/platform/AddressFamily;
if_acmpne 38
ldc "[::]"
goto 39
StackMap locals: int java.lang.String
StackMap stack:
38: ldc "0.0.0.0"
StackMap locals:
StackMap stack: java.lang.String
39: astore 16
40: goto 44
41: StackMap locals:
StackMap stack:
iload 6
ifeq 42
ldc "localhost"
goto 43
StackMap locals:
StackMap stack:
42: aload 4
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.toString:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
43: astore 16
44: StackMap locals:
StackMap stack:
aload 16
invokestatic java.net.InetAddress.getAllByName:(Ljava/lang/String;)[Ljava/net/InetAddress;
astore 17
start local 17 45: iconst_0
istore 18
start local 18 46: goto 51
47: StackMap locals: java.net.InetAddress[] int
StackMap stack:
aload 12
getstatic jnr.constants.platform.AddressFamily.AF_INET6:Ljnr/constants/platform/AddressFamily;
if_acmpne 48
aload 17
iload 18
aaload
instanceof java.net.Inet6Address
ifne 48
goto 50
48: StackMap locals:
StackMap stack:
aload 12
getstatic jnr.constants.platform.AddressFamily.AF_INET:Ljnr/constants/platform/AddressFamily;
if_acmpne 49
aload 17
iload 18
aaload
instanceof java.net.Inet4Address
ifne 49
goto 50
49: StackMap locals:
StackMap stack:
aload 2
aload 17
iload 18
aaload
iload 14
aload 13
aload 11
invokeinterface org.jruby.ext.socket.SocketUtils$AddrinfoCallback.addrinfo:(Ljava/net/InetAddress;ILjnr/constants/platform/Sock;Ljava/lang/Boolean;)V
50: StackMap locals:
StackMap stack:
iinc 18 1
StackMap locals:
StackMap stack:
51: iload 18
aload 17
arraylength
if_icmplt 47
end local 18 end local 17 52: goto 55
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.ext.socket.SocketUtils$AddrinfoCallback org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject int org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject java.lang.Boolean jnr.constants.platform.AddressFamily jnr.constants.platform.Sock int int java.lang.String
StackMap stack: java.net.UnknownHostException
53: pop
54: aload 3
ldc "getaddrinfo: name or service not known"
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
55: StackMap locals:
StackMap stack:
return
end local 16 end local 15 end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 56 0 context Lorg/jruby/runtime/ThreadContext;
0 56 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 56 2 callback Lorg/jruby/ext/socket/SocketUtils$AddrinfoCallback;
1 56 3 runtime Lorg/jruby/Ruby;
2 56 4 host Lorg/jruby/runtime/builtin/IRubyObject;
3 56 5 port Lorg/jruby/runtime/builtin/IRubyObject;
6 56 6 emptyHost Z
9 56 7 family Lorg/jruby/runtime/builtin/IRubyObject;
12 56 8 socktype Lorg/jruby/runtime/builtin/IRubyObject;
17 56 9 flags Lorg/jruby/runtime/builtin/IRubyObject;
20 56 10 reverseArg Lorg/jruby/runtime/builtin/IRubyObject;
21 56 11 reverseLookup Ljava/lang/Boolean;
24 56 12 addressFamily Ljnr/constants/platform/AddressFamily;
27 56 13 sock Ljnr/constants/platform/Sock;
32 56 14 p I
35 56 15 flag I
36 56 16 hostString Ljava/lang/String;
45 52 17 addrs [Ljava/net/InetAddress;
46 52 18 i I
Exception table:
from to target type
44 52 53 Class java.net.UnknownHostException
MethodParameters:
Name Flags
context
args
callback
public static org.jruby.runtime.builtin.IRubyObject getnameinfo(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=10, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 1
arraylength
iconst_2
if_icmpne 2
aload 1
iconst_1
aaload
invokestatic org.jruby.RubyNumeric.num2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
goto 3
StackMap locals: org.jruby.Ruby
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: istore 3
start local 3 4: aload 1
iconst_0
aaload
astore 4
start local 4 5: aload 4
instanceof org.jruby.RubyArray
ifeq 15
6: aload 4
checkcast org.jruby.RubyArray
astore 7
start local 7 7: aload 7
invokevirtual org.jruby.RubyArray.size:()I
istore 8
start local 8 8: iload 8
iconst_3
if_icmplt 9
iload 8
iconst_4
if_icmple 10
9: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby int org.jruby.runtime.builtin.IRubyObject top top org.jruby.RubyArray int
StackMap stack:
aload 2
new java.lang.StringBuilder
dup
ldc "array size should be 3 or 4, "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 8
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " given"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
10: StackMap locals:
StackMap stack:
aload 7
iconst_1
invokevirtual org.jruby.RubyArray.eltInternal:(I)Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 6
start local 6 11: iload 8
iconst_3
if_icmpne 12
aload 7
iconst_2
invokevirtual org.jruby.RubyArray.eltInternal:(I)Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
goto 13
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby int org.jruby.runtime.builtin.IRubyObject top java.lang.String org.jruby.RubyArray int
StackMap stack:
12: aload 7
iconst_3
invokevirtual org.jruby.RubyArray.eltInternal:(I)Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
13: astore 5
end local 8 end local 7 start local 5 14: goto 37
end local 6 end local 5 StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby int org.jruby.runtime.builtin.IRubyObject
StackMap stack:
15: aload 4
instanceof org.jruby.RubyString
ifeq 36
16: aload 4
checkcast org.jruby.RubyString
invokevirtual org.jruby.RubyString.toString:()Ljava/lang/String;
astore 7
start local 7 17: getstatic org.jruby.ext.socket.SocketUtils.STRING_IPV4_ADDRESS_PATTERN:Ljava/util/regex/Pattern;
aload 7
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 8
start local 8 18: aload 8
invokevirtual java.util.regex.Matcher.matches:()Z
ifne 25
19: aload 0
aload 4
invokestatic org.jruby.util.io.Sockaddr.unpack_sockaddr_in:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
astore 9
start local 9 20: aload 9
invokevirtual org.jruby.RubyArray.size:()I
iconst_2
if_icmpeq 22
21: aload 2
ldc "invalid address representation"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
22: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby int org.jruby.runtime.builtin.IRubyObject top top java.lang.String java.util.regex.Matcher org.jruby.RubyArray
StackMap stack:
aload 9
iconst_0
invokevirtual org.jruby.RubyArray.eltInternal:(I)Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 6
start local 6 23: aload 9
iconst_1
invokevirtual org.jruby.RubyArray.eltInternal:(I)Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 5
end local 9 start local 5 24: goto 37
end local 6 end local 5 StackMap locals:
StackMap stack:
25: aload 8
iconst_3
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
dup
astore 5
start local 5 26: ifnull 29
aload 5
invokevirtual java.lang.String.length:()I
ifeq 29
27: aload 8
iconst_5
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
dup
astore 6
start local 6 28: ifnull 29
aload 6
invokevirtual java.lang.String.length:()I
ifne 30
end local 6 29: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby int org.jruby.runtime.builtin.IRubyObject java.lang.String top java.lang.String java.util.regex.Matcher
StackMap stack:
aload 2
ldc "invalid address string"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
start local 6 30: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby int org.jruby.runtime.builtin.IRubyObject java.lang.String java.lang.String java.lang.String java.util.regex.Matcher
StackMap stack:
aload 5
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
astore 9
start local 9 31: aload 9
instanceof java.net.Inet6Address
ifeq 37
32: aload 9
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
astore 5
end local 9 33: goto 37
StackMap locals:
StackMap stack: java.net.UnknownHostException
34: pop
35: aload 2
ldc "invalid address string"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 8 end local 7 end local 6 end local 5 36: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby int org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 2
ldc "invalid args"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
start local 5 start local 6 37: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 5
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
astore 7
start local 7 38: goto 41
end local 7 StackMap locals:
StackMap stack: java.net.UnknownHostException
39: pop
40: aload 2
new java.lang.StringBuilder
dup
ldc "unknown host: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
start local 7 41: StackMap locals: java.net.InetAddress
StackMap stack:
iload 3
getstatic jnr.constants.platform.NameInfo.NI_NUMERICHOST:Ljnr/constants/platform/NameInfo;
invokevirtual jnr.constants.platform.NameInfo.intValue:()I
iand
ifne 44
42: aload 7
invokevirtual java.net.InetAddress.getCanonicalHostName:()Ljava/lang/String;
astore 5
43: goto 45
44: StackMap locals:
StackMap stack:
aload 7
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
astore 5
45: StackMap locals:
StackMap stack:
aload 6
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
aconst_null
invokestatic jnr.netdb.Service.getServiceByPort:(ILjava/lang/String;)Ljnr/netdb/Service;
astore 8
start local 8 46: aload 8
ifnull 51
47: iload 3
getstatic jnr.constants.platform.NameInfo.NI_NUMERICSERV:Ljnr/constants/platform/NameInfo;
invokevirtual jnr.constants.platform.NameInfo.intValue:()I
iand
ifne 50
48: aload 8
invokevirtual jnr.netdb.Service.getName:()Ljava/lang/String;
astore 6
49: goto 51
50: StackMap locals: jnr.netdb.Service
StackMap stack:
aload 8
invokevirtual jnr.netdb.Service.getPort:()I
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
astore 6
51: StackMap locals:
StackMap stack:
aload 2
aload 2
aload 5
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aload 2
aload 6
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
invokevirtual org.jruby.Ruby.newArray:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 52 0 context Lorg/jruby/runtime/ThreadContext;
0 52 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 52 2 runtime Lorg/jruby/Ruby;
4 52 3 flags I
5 52 4 arg0 Lorg/jruby/runtime/builtin/IRubyObject;
14 15 5 host Ljava/lang/String;
24 25 5 host Ljava/lang/String;
26 36 5 host Ljava/lang/String;
37 52 5 host Ljava/lang/String;
11 15 6 port Ljava/lang/String;
23 25 6 port Ljava/lang/String;
28 29 6 port Ljava/lang/String;
30 36 6 port Ljava/lang/String;
37 52 6 port Ljava/lang/String;
7 14 7 ary Lorg/jruby/RubyArray;
8 14 8 len I
17 36 7 arg Ljava/lang/String;
18 36 8 m Ljava/util/regex/Matcher;
20 24 9 portAndHost Lorg/jruby/RubyArray;
31 33 9 ipv6_addr Ljava/net/InetAddress;
38 39 7 addr Ljava/net/InetAddress;
41 52 7 addr Ljava/net/InetAddress;
46 52 8 serv Ljnr/netdb/Service;
Exception table:
from to target type
30 33 34 Class java.net.UnknownHostException
37 38 39 Class java.net.UnknownHostException
MethodParameters:
Name Flags
context
args
public static org.jruby.runtime.builtin.IRubyObject ip_address_list(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 1
start local 1 1: aload 1
invokestatic org.jruby.RubyArray.newArray:(Lorg/jruby/Ruby;)Lorg/jruby/RubyArray;
astore 2
start local 2 2: aload 1
ldc "Addrinfo"
invokevirtual org.jruby.Ruby.getClass:(Ljava/lang/String;)Lorg/jruby/RubyClass;
astore 3
start local 3 3: invokestatic java.net.NetworkInterface.getNetworkInterfaces:()Ljava/util/Enumeration;
astore 4
start local 4 4: goto 9
5: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.Ruby org.jruby.RubyArray org.jruby.RubyClass java.util.Enumeration
StackMap stack:
aload 4
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.net.NetworkInterface
invokevirtual java.net.NetworkInterface.getInetAddresses:()Ljava/util/Enumeration;
astore 5
start local 5 6: goto 8
7: StackMap locals: java.util.Enumeration
StackMap stack:
aload 2
new org.jruby.ext.socket.Addrinfo
dup
aload 1
aload 3
aload 5
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.net.InetAddress
invokespecial org.jruby.ext.socket.Addrinfo.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Ljava/net/InetAddress;)V
invokevirtual org.jruby.RubyArray.append:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
pop
8: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 7
end local 5 9: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 5
end local 4 10: aload 2
11: areturn
end local 3 end local 2 12: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.Ruby
StackMap stack: java.net.SocketException
astore 2
start local 2 13: aload 1
aload 2
invokevirtual java.net.SocketException.getLocalizedMessage:()Ljava/lang/String;
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 context Lorg/jruby/runtime/ThreadContext;
1 14 1 runtime Lorg/jruby/Ruby;
2 12 2 list Lorg/jruby/RubyArray;
3 12 3 addrInfoCls Lorg/jruby/RubyClass;
4 10 4 networkIfcs Ljava/util/Enumeration<Ljava/net/NetworkInterface;>;
6 9 5 addresses Ljava/util/Enumeration<Ljava/net/InetAddress;>;
13 14 2 se Ljava/net/SocketException;
Exception table:
from to target type
1 11 12 Class java.net.SocketException
MethodParameters:
Name Flags
context
public static java.net.InetAddress[] getRubyInetAddresses(org.jruby.util.ByteList);
descriptor: (Lorg/jruby/util/ByteList;)[Ljava/net/InetAddress;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.jruby.runtime.Helpers.byteListToString:(Lorg/jruby/util/ByteList;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
ldc "<broadcast>"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
2: iconst_1
anewarray java.net.InetAddress
dup
iconst_0
getstatic org.jruby.ext.socket.SocketUtils.INADDR_BROADCAST:[B
invokestatic java.net.InetAddress.getByAddress:([B)Ljava/net/InetAddress;
aastore
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 1
ldc "<any>"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: iconst_1
anewarray java.net.InetAddress
dup
iconst_0
getstatic org.jruby.ext.socket.SocketUtils.INADDR_ANY:[B
invokestatic java.net.InetAddress.getByAddress:([B)Ljava/net/InetAddress;
aastore
areturn
5: StackMap locals:
StackMap stack:
aload 1
invokestatic java.net.InetAddress.getAllByName:(Ljava/lang/String;)[Ljava/net/InetAddress;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 address Lorg/jruby/util/ByteList;
1 6 1 addressString Ljava/lang/String;
Exceptions:
throws java.net.UnknownHostException
MethodParameters:
Name Flags
address
public static org.jruby.runtime.builtin.IRubyObject getaddress(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.toString:()Ljava/lang/String;
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
invokestatic org.jruby.RubyString.newInternalFromJavaExternal:(Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/RubyString;
1: areturn
2: StackMap locals:
StackMap stack: java.net.UnknownHostException
pop
3: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "getaddress: name or service not known"
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 context Lorg/jruby/runtime/ThreadContext;
0 4 1 hostname Lorg/jruby/runtime/builtin/IRubyObject;
Exception table:
from to target type
0 1 2 Class java.net.UnknownHostException
MethodParameters:
Name Flags
context
hostname
public static java.lang.RuntimeException sockerr(org.jruby.Ruby, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
ldc "SocketError"
invokevirtual org.jruby.Ruby.getClass:(Ljava/lang/String;)Lorg/jruby/RubyClass;
aload 1
invokestatic org.jruby.exceptions.RaiseException.from:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runtime Lorg/jruby/Ruby;
0 1 1 msg Ljava/lang/String;
MethodParameters:
Name Flags
runtime
msg
public static java.lang.RuntimeException sockerr_with_trace(org.jruby.Ruby, java.lang.String, java.lang.StackTraceElement[]);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;[Ljava/lang/StackTraceElement;)Ljava/lang/RuntimeException;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 4
start local 4 2: aload 4
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
3: iconst_0
istore 5
start local 5 4: aload 2
arraylength
istore 6
start local 6 5: goto 8
6: StackMap locals: org.jruby.Ruby java.lang.String java.lang.StackTraceElement[] java.lang.String java.lang.StringBuilder int int
StackMap stack:
aload 4
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
iload 5
aaload
invokevirtual java.lang.StackTraceElement.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
7: iinc 5 1
StackMap locals:
StackMap stack:
8: iload 5
iload 6
if_icmplt 6
end local 6 end local 5 9: aload 0
aload 0
ldc "SocketError"
invokevirtual org.jruby.Ruby.getClass:(Ljava/lang/String;)Lorg/jruby/RubyClass;
aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.jruby.exceptions.RaiseException.from:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 runtime Lorg/jruby/Ruby;
0 10 1 msg Ljava/lang/String;
0 10 2 trace [Ljava/lang/StackTraceElement;
1 10 3 eol Ljava/lang/String;
2 10 4 sb Ljava/lang/StringBuilder;
4 9 5 i I
5 9 6 il I
MethodParameters:
Name Flags
runtime
msg
trace
public static int getPortFrom(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.jruby.RubyInteger
ifeq 3
1: aload 1
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 2
start local 2 2: goto 9
end local 2 3: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
astore 3
start local 3 4: aload 3
ldc "to_i"
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToInteger:(Ljava/lang/String;)Lorg/jruby/RubyInteger;
astore 4
start local 4 5: aload 4
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 2
start local 2 6: iload 2
ifgt 9
7: aload 0
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
iconst_1
anewarray org.jruby.runtime.builtin.IRubyObject
dup
iconst_0
aload 3
aastore
8: invokestatic org.jruby.ext.socket.RubySocket.getservbyname:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 2
end local 4 end local 3 9: StackMap locals: int
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 context Lorg/jruby/runtime/ThreadContext;
0 10 1 _port Lorg/jruby/runtime/builtin/IRubyObject;
2 3 2 port I
6 10 2 port I
4 9 3 portString Lorg/jruby/runtime/builtin/IRubyObject;
5 9 4 portInteger Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
_port
private static java.lang.String getHostAddress(org.jruby.runtime.ThreadContext, java.net.InetAddress, java.lang.Boolean);
descriptor: (Lorg/jruby/runtime/ThreadContext;Ljava/net/InetAddress;Ljava/lang/Boolean;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 6
1: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.isDoNotReverseLookupEnabled:()Z
ifeq 3
2: aload 1
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
goto 4
StackMap locals:
StackMap stack:
3: aload 1
invokevirtual java.net.InetAddress.getCanonicalHostName:()Ljava/lang/String;
4: StackMap locals:
StackMap stack: java.lang.String
astore 3
start local 3 5: goto 10
end local 3 StackMap locals:
StackMap stack:
6: aload 2
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 9
7: aload 1
invokevirtual java.net.InetAddress.getCanonicalHostName:()Ljava/lang/String;
astore 3
start local 3 8: goto 10
end local 3 9: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
astore 3
start local 3 10: StackMap locals: java.lang.String
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 context Lorg/jruby/runtime/ThreadContext;
0 11 1 addr Ljava/net/InetAddress;
0 11 2 reverse Ljava/lang/Boolean;
5 6 3 ret Ljava/lang/String;
8 9 3 ret Ljava/lang/String;
10 11 3 ret Ljava/lang/String;
MethodParameters:
Name Flags
context
addr
reverse
static jnr.constants.platform.AddressFamily addressFamilyFromArg(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Ljnr/constants/platform/AddressFamily;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
aload 0
invokestatic org.jruby.util.TypeConverter.checkStringType:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 1
start local 1 1: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 3
2: aload 1
astore 0
3: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 0
instanceof org.jruby.RubyString
ifne 4
aload 0
instanceof org.jruby.RubySymbol
ifeq 12
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 2
start local 2 5: aload 2
ldc "AF_"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 7
aload 2
invokestatic jnr.constants.platform.AddressFamily.valueOf:(Ljava/lang/String;)Ljnr/constants/platform/AddressFamily;
6: areturn
7: StackMap locals: java.lang.String
StackMap stack:
aload 2
ldc "PF_"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 10
8: aload 2
invokestatic jnr.constants.platform.ProtocolFamily.valueOf:(Ljava/lang/String;)Ljnr/constants/platform/ProtocolFamily;
invokevirtual jnr.constants.platform.ProtocolFamily.intValue:()I
i2l
invokestatic jnr.constants.platform.AddressFamily.valueOf:(J)Ljnr/constants/platform/AddressFamily;
9: areturn
10: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "AF_"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic jnr.constants.platform.AddressFamily.valueOf:(Ljava/lang/String;)Ljnr/constants/platform/AddressFamily;
11: areturn
end local 2 12: StackMap locals:
StackMap stack:
aload 0
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 2
start local 2 13: iload 2
i2l
invokestatic jnr.constants.platform.AddressFamily.valueOf:(J)Ljnr/constants/platform/AddressFamily;
14: areturn
end local 2 15: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
pop
16: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "invalid address family: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 domain Lorg/jruby/runtime/builtin/IRubyObject;
1 17 1 maybeString Lorg/jruby/runtime/builtin/IRubyObject;
5 12 2 domainString Ljava/lang/String;
13 15 2 domainInt I
Exception table:
from to target type
3 6 15 Class java.lang.IllegalArgumentException
7 9 15 Class java.lang.IllegalArgumentException
10 11 15 Class java.lang.IllegalArgumentException
12 14 15 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
domain
static jnr.constants.platform.Sock sockFromArg(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Ljnr/constants/platform/Sock;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
aload 0
invokestatic org.jruby.util.TypeConverter.checkStringType:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 1
start local 1 1: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 3
2: aload 1
astore 0
3: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 0
instanceof org.jruby.RubyString
ifne 4
aload 0
instanceof org.jruby.RubySymbol
ifeq 9
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 2
start local 2 5: aload 2
ldc "SOCK_"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 7
aload 2
invokevirtual java.lang.String.toString:()Ljava/lang/String;
invokestatic jnr.constants.platform.Sock.valueOf:(Ljava/lang/String;)Ljnr/constants/platform/Sock;
6: areturn
7: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
ldc "SOCK_"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic jnr.constants.platform.Sock.valueOf:(Ljava/lang/String;)Ljnr/constants/platform/Sock;
8: areturn
end local 2 9: StackMap locals:
StackMap stack:
aload 0
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 2
start local 2 10: iload 2
i2l
invokestatic jnr.constants.platform.Sock.valueOf:(J)Ljnr/constants/platform/Sock;
11: areturn
end local 2 12: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
pop
13: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "invalid socket type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 type Lorg/jruby/runtime/builtin/IRubyObject;
1 14 1 maybeString Lorg/jruby/runtime/builtin/IRubyObject;
5 9 2 typeString Ljava/lang/String;
10 12 2 typeInt I
Exception table:
from to target type
3 6 12 Class java.lang.IllegalArgumentException
7 8 12 Class java.lang.IllegalArgumentException
9 11 12 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
type
static jnr.constants.platform.ProtocolFamily protocolFamilyFromArg(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Ljnr/constants/platform/ProtocolFamily;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
aload 0
invokestatic org.jruby.util.TypeConverter.checkStringType:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 1
start local 1 1: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 3
2: aload 1
astore 0
3: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 0
instanceof org.jruby.RubyString
ifne 4
aload 0
instanceof org.jruby.RubySymbol
ifeq 11
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 2
start local 2 5: aload 2
ldc "PF_"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 7
aload 2
invokestatic jnr.constants.platform.ProtocolFamily.valueOf:(Ljava/lang/String;)Ljnr/constants/platform/ProtocolFamily;
6: areturn
7: StackMap locals: java.lang.String
StackMap stack:
aload 2
ldc "AF_"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 9
aload 2
invokestatic jnr.constants.platform.AddressFamily.valueOf:(Ljava/lang/String;)Ljnr/constants/platform/AddressFamily;
invokevirtual jnr.constants.platform.AddressFamily.intValue:()I
i2l
invokestatic jnr.constants.platform.ProtocolFamily.valueOf:(J)Ljnr/constants/platform/ProtocolFamily;
8: areturn
9: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "PF_"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic jnr.constants.platform.ProtocolFamily.valueOf:(Ljava/lang/String;)Ljnr/constants/platform/ProtocolFamily;
10: areturn
end local 2 11: StackMap locals:
StackMap stack:
aload 0
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 2
start local 2 12: iload 2
i2l
invokestatic jnr.constants.platform.ProtocolFamily.valueOf:(J)Ljnr/constants/platform/ProtocolFamily;
13: areturn
end local 2 14: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
pop
15: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "invalid protocol family: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 protocol Lorg/jruby/runtime/builtin/IRubyObject;
1 16 1 maybeString Lorg/jruby/runtime/builtin/IRubyObject;
5 11 2 protocolString Ljava/lang/String;
12 14 2 protocolInt I
Exception table:
from to target type
3 6 14 Class java.lang.IllegalArgumentException
7 8 14 Class java.lang.IllegalArgumentException
9 10 14 Class java.lang.IllegalArgumentException
11 13 14 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
protocol
static jnr.netdb.Protocol protocolFromArg(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Ljnr/netdb/Protocol;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
aload 0
invokestatic org.jruby.util.TypeConverter.checkStringType:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 1
start local 1 1: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 3
2: aload 1
astore 0
3: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 0
instanceof org.jruby.RubyString
ifne 4
aload 0
instanceof org.jruby.RubySymbol
ifeq 7
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 2
start local 2 5: aload 2
invokestatic jnr.netdb.Protocol.getProtocolByName:(Ljava/lang/String;)Ljnr/netdb/Protocol;
6: areturn
end local 2 7: StackMap locals:
StackMap stack:
aload 0
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 2
start local 2 8: iload 2
invokestatic jnr.netdb.Protocol.getProtocolByNumber:(I)Ljnr/netdb/Protocol;
9: areturn
end local 2 10: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
pop
11: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "invalid protocol: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 protocol Lorg/jruby/runtime/builtin/IRubyObject;
1 12 1 maybeString Lorg/jruby/runtime/builtin/IRubyObject;
5 7 2 protocolString Ljava/lang/String;
8 10 2 protocolInt I
Exception table:
from to target type
3 6 10 Class java.lang.IllegalArgumentException
7 9 10 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
protocol
static jnr.constants.platform.SocketLevel levelFromArg(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Ljnr/constants/platform/SocketLevel;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
aload 0
invokestatic org.jruby.util.TypeConverter.checkStringType:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 1
start local 1 1: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 3
2: aload 1
astore 0
3: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 0
instanceof org.jruby.RubyString
ifne 4
aload 0
instanceof org.jruby.RubySymbol
ifeq 9
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 2
start local 2 5: aload 2
ldc "SOL_"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 7
aload 2
invokestatic jnr.constants.platform.SocketLevel.valueOf:(Ljava/lang/String;)Ljnr/constants/platform/SocketLevel;
6: areturn
7: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
ldc "SOL_"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic jnr.constants.platform.SocketLevel.valueOf:(Ljava/lang/String;)Ljnr/constants/platform/SocketLevel;
8: areturn
end local 2 9: StackMap locals:
StackMap stack:
aload 0
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
i2l
invokestatic jnr.constants.platform.SocketLevel.valueOf:(J)Ljnr/constants/platform/SocketLevel;
10: areturn
11: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
pop
12: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "invalid socket level: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 level Lorg/jruby/runtime/builtin/IRubyObject;
1 13 1 maybeString Lorg/jruby/runtime/builtin/IRubyObject;
5 9 2 levelString Ljava/lang/String;
Exception table:
from to target type
3 6 11 Class java.lang.IllegalArgumentException
7 8 11 Class java.lang.IllegalArgumentException
9 10 11 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
level
static jnr.constants.platform.SocketOption optionFromArg(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Ljnr/constants/platform/SocketOption;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
aload 0
invokestatic org.jruby.util.TypeConverter.checkStringType:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 1
start local 1 1: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 3
2: aload 1
astore 0
3: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 0
instanceof org.jruby.RubyString
ifne 4
aload 0
instanceof org.jruby.RubySymbol
ifeq 9
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 2
start local 2 5: aload 2
ldc "SO_"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 7
aload 2
invokestatic jnr.constants.platform.SocketOption.valueOf:(Ljava/lang/String;)Ljnr/constants/platform/SocketOption;
6: areturn
7: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
ldc "SO_"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic jnr.constants.platform.SocketOption.valueOf:(Ljava/lang/String;)Ljnr/constants/platform/SocketOption;
8: areturn
end local 2 9: StackMap locals:
StackMap stack:
aload 0
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
i2l
invokestatic jnr.constants.platform.SocketOption.valueOf:(J)Ljnr/constants/platform/SocketOption;
10: areturn
11: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
pop
12: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "invalid socket option: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 opt Lorg/jruby/runtime/builtin/IRubyObject;
1 13 1 maybeString Lorg/jruby/runtime/builtin/IRubyObject;
5 9 2 optString Ljava/lang/String;
Exception table:
from to target type
3 6 11 Class java.lang.IllegalArgumentException
7 8 11 Class java.lang.IllegalArgumentException
9 10 11 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
opt
public static int portToInt(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 1
iconst_0
ireturn
1: StackMap locals:
StackMap stack:
aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 1
start local 1 2: aload 1
aload 0
invokestatic org.jruby.util.TypeConverter.checkStringType:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 2
start local 2 3: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 8
4: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
astore 3
start local 3 5: aload 3
invokevirtual org.jruby.RubyString.toString:()Ljava/lang/String;
aconst_null
invokestatic jnr.netdb.Service.getServiceByName:(Ljava/lang/String;Ljava/lang/String;)Ljnr/netdb/Service;
astore 4
start local 4 6: aload 4
ifnull 7
aload 4
invokevirtual jnr.netdb.Service.getPort:()I
ireturn
7: StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.RubyString jnr.netdb.Service
StackMap stack:
aload 3
invokevirtual org.jruby.RubyString.to_i:()Lorg/jruby/runtime/builtin/IRubyObject;
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
ireturn
end local 4 end local 3 8: StackMap locals:
StackMap stack:
aload 0
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 port Lorg/jruby/runtime/builtin/IRubyObject;
2 9 1 runtime Lorg/jruby/Ruby;
3 9 2 maybeStr Lorg/jruby/runtime/builtin/IRubyObject;
5 8 3 portStr Lorg/jruby/RubyString;
6 8 4 serv Ljnr/netdb/Service;
MethodParameters:
Name Flags
port
}
SourceFile: "SocketUtils.java"
NestMembers:
org.jruby.ext.socket.SocketUtils$1 org.jruby.ext.socket.SocketUtils$2 org.jruby.ext.socket.SocketUtils$AddrinfoCallback
InnerClasses:
org.jruby.ext.socket.SocketUtils$1
org.jruby.ext.socket.SocketUtils$2
abstract AddrinfoCallback = org.jruby.ext.socket.SocketUtils$AddrinfoCallback of org.jruby.ext.socket.SocketUtils