public class org.jruby.ext.socket.RubyIPSocket extends org.jruby.ext.socket.RubyBasicSocket
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ext.socket.RubyIPSocket
super_class: org.jruby.ext.socket.RubyBasicSocket
{
private static org.jruby.runtime.ObjectAllocator IPSOCKET_ALLOCATOR;
descriptor: Lorg/jruby/runtime/ObjectAllocator;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.jruby.ext.socket.RubyIPSocket$1
dup
invokespecial org.jruby.ext.socket.RubyIPSocket$1.<init>:()V
putstatic org.jruby.ext.socket.RubyIPSocket.IPSOCKET_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
1: return
LocalVariableTable:
Start End Slot Name Signature
static void createIPSocket(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
ldc "IPSocket"
aload 0
ldc "BasicSocket"
invokevirtual org.jruby.Ruby.getClass:(Ljava/lang/String;)Lorg/jruby/RubyClass;
getstatic org.jruby.ext.socket.RubyIPSocket.IPSOCKET_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
invokevirtual org.jruby.Ruby.defineClass:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
astore 1
start local 1 1: aload 1
ldc Lorg/jruby/ext/socket/RubyIPSocket;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
2: aload 1
ldc "initialize"
invokevirtual org.jruby.RubyClass.undefineMethod:(Ljava/lang/String;)V
3: aload 0
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
ldc "IPsocket"
aload 1
invokevirtual org.jruby.RubyClass.setConstant:(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 runtime Lorg/jruby/Ruby;
1 5 1 rb_cIPSocket Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
public void <init>(org.jruby.Ruby, org.jruby.RubyClass);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.jruby.ext.socket.RubyBasicSocket.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/socket/RubyIPSocket;
0 2 1 runtime Lorg/jruby/Ruby;
0 2 2 type Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
type
public org.jruby.runtime.builtin.IRubyObject addr(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
invokevirtual org.jruby.runtime.ThreadContext.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.isDoNotReverseLookupEnabled:()Z
ifeq 1
iconst_0
goto 2
StackMap locals: org.jruby.ext.socket.RubyIPSocket org.jruby.runtime.ThreadContext
StackMap stack: org.jruby.ext.socket.RubyIPSocket org.jruby.runtime.ThreadContext
1: iconst_1
StackMap locals: org.jruby.ext.socket.RubyIPSocket org.jruby.runtime.ThreadContext
StackMap stack: org.jruby.ext.socket.RubyIPSocket org.jruby.runtime.ThreadContext int
2: invokevirtual org.jruby.ext.socket.RubyIPSocket.addrCommon:(Lorg/jruby/runtime/ThreadContext;Z)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/socket/RubyIPSocket;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"addr"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject addr(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: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual org.jruby.ext.socket.RubyIPSocket.addrCommon:(Lorg/jruby/runtime/ThreadContext;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 this Lorg/jruby/ext/socket/RubyIPSocket;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 reverse Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"addr"})
MethodParameters:
Name Flags
context
reverse
public org.jruby.runtime.builtin.IRubyObject peeraddr(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
invokevirtual org.jruby.runtime.ThreadContext.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.isDoNotReverseLookupEnabled:()Z
ifeq 1
iconst_0
goto 2
StackMap locals: org.jruby.ext.socket.RubyIPSocket org.jruby.runtime.ThreadContext
StackMap stack: org.jruby.ext.socket.RubyIPSocket org.jruby.runtime.ThreadContext
1: iconst_1
StackMap locals: org.jruby.ext.socket.RubyIPSocket org.jruby.runtime.ThreadContext
StackMap stack: org.jruby.ext.socket.RubyIPSocket org.jruby.runtime.ThreadContext int
2: invokevirtual org.jruby.ext.socket.RubyIPSocket.peeraddrCommon:(Lorg/jruby/runtime/ThreadContext;Z)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/socket/RubyIPSocket;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"peeraddr"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject peeraddr(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: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual org.jruby.ext.socket.RubyIPSocket.peeraddrCommon:(Lorg/jruby/runtime/ThreadContext;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 this Lorg/jruby/ext/socket/RubyIPSocket;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 reverse Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"peeraddr"})
MethodParameters:
Name Flags
context
reverse
public static org.jruby.runtime.builtin.IRubyObject getaddress(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=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokestatic org.jruby.ext.socket.SocketUtils.getaddress:(Lorg/jruby/runtime/ThreadContext;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 self Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 hostname Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(meta = true)
MethodParameters:
Name Flags
context
self
hostname
public org.jruby.runtime.builtin.IRubyObject recvfrom(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: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 0
aload 1
aload 2
invokevirtual org.jruby.ext.socket.RubyIPSocket.recv:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 4
start local 4 2: aload 0
invokevirtual org.jruby.ext.socket.RubyIPSocket.getInetRemoteSocket:()Ljava/net/InetSocketAddress;
astore 5
start local 5 3: aload 5
ifnonnull 8
4: iconst_0
istore 6
start local 6 5: ldc "0.0.0.0"
dup
astore 8
start local 8 6: astore 7
start local 7 7: goto 11
end local 8 end local 7 end local 6 8: StackMap locals: org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject java.net.InetSocketAddress
StackMap stack:
aload 5
invokevirtual java.net.InetSocketAddress.getPort:()I
istore 6
start local 6 9: aload 5
invokevirtual java.net.InetSocketAddress.getHostName:()Ljava/lang/String;
astore 7
start local 7 10: aload 5
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
astore 8
start local 8 11: StackMap locals: int java.lang.String java.lang.String
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
iconst_4
anewarray org.jruby.runtime.builtin.IRubyObject
dup
iconst_0
12: aload 3
ldc "AF_INET"
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
dup
iconst_1
13: aload 3
iload 6
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
aastore
dup
iconst_2
14: aload 3
aload 7
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
dup
iconst_3
15: aload 3
aload 8
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
16: invokevirtual org.jruby.Ruby.newArrayNoCopy:([Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
astore 9
start local 9 17: aload 3
aload 4
aload 9
invokevirtual org.jruby.Ruby.newArray:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
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 18 0 this Lorg/jruby/ext/socket/RubyIPSocket;
0 18 1 context Lorg/jruby/runtime/ThreadContext;
0 18 2 _length Lorg/jruby/runtime/builtin/IRubyObject;
1 18 3 runtime Lorg/jruby/Ruby;
2 18 4 result Lorg/jruby/runtime/builtin/IRubyObject;
3 18 5 sender Ljava/net/InetSocketAddress;
5 8 6 port I
9 18 6 port I
7 8 7 hostName Ljava/lang/String;
10 18 7 hostName Ljava/lang/String;
6 8 8 hostAddress Ljava/lang/String;
11 18 8 hostAddress Ljava/lang/String;
17 18 9 addressArray Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
_length
public org.jruby.runtime.builtin.IRubyObject recvfrom(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: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
invokevirtual org.jruby.ext.socket.RubyIPSocket.recvfrom:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/socket/RubyIPSocket;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 _length Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 _flags Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
_length
_flags
public org.jruby.runtime.builtin.IRubyObject getpeereid(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "getpeereid not implemented"
invokevirtual org.jruby.Ruby.newNotImplementedError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/socket/RubyIPSocket;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"getpeereid"}, notImplemented = true)
MethodParameters:
Name Flags
context
protected org.jruby.runtime.builtin.IRubyObject getSocknameCommon(org.jruby.runtime.ThreadContext, java.lang.String);
descriptor: (Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.ext.socket.RubyIPSocket.getInetSocketAddress:()Ljava/net/InetSocketAddress;
astore 3
start local 3 1: aload 1
aload 3
invokestatic org.jruby.util.io.Sockaddr.packSockaddrFromAddress:(Lorg/jruby/runtime/ThreadContext;Ljava/net/InetSocketAddress;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/socket/RubyIPSocket;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 caller Ljava/lang/String;
1 2 3 sock Ljava/net/InetSocketAddress;
MethodParameters:
Name Flags
context
caller
public org.jruby.runtime.builtin.IRubyObject getpeername(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.socket.RubyIPSocket.getInetRemoteSocket:()Ljava/net/InetSocketAddress;
astore 2
start local 2 1: aload 1
aload 2
invokestatic org.jruby.util.io.Sockaddr.packSockaddrFromAddress:(Lorg/jruby/runtime/ThreadContext;Ljava/net/InetSocketAddress;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/socket/RubyIPSocket;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
1 2 2 sock Ljava/net/InetSocketAddress;
MethodParameters:
Name Flags
context
private org.jruby.runtime.builtin.IRubyObject addrCommon(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: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokestatic org.jruby.ext.socket.RubyIPSocket.doReverseLookup:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/lang/Boolean;
astore 3
start local 3 1: aload 3
ifnonnull 2
iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
astore 3
2: StackMap locals: java.lang.Boolean
StackMap stack:
aload 0
aload 1
aload 3
invokevirtual java.lang.Boolean.booleanValue:()Z
invokevirtual org.jruby.ext.socket.RubyIPSocket.addrCommon:(Lorg/jruby/runtime/ThreadContext;Z)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/socket/RubyIPSocket;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
0 3 2 reverse Lorg/jruby/runtime/builtin/IRubyObject;
1 3 3 doReverse Ljava/lang/Boolean;
MethodParameters:
Name Flags
context
reverse
private org.jruby.runtime.builtin.IRubyObject addrCommon(org.jruby.runtime.ThreadContext, boolean);
descriptor: (Lorg/jruby/runtime/ThreadContext;Z)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.ext.socket.RubyIPSocket.getInetSocketAddress:()Ljava/net/InetSocketAddress;
astore 3
start local 3 1: aload 0
aload 1
aload 3
invokevirtual org.jruby.ext.socket.RubyIPSocket.checkAddress:(Lorg/jruby/runtime/ThreadContext;Ljava/net/InetSocketAddress;)V
2: aload 0
aload 1
aload 3
iload 2
invokevirtual org.jruby.ext.socket.RubyIPSocket.addrFor:(Lorg/jruby/runtime/ThreadContext;Ljava/net/InetSocketAddress;Z)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/socket/RubyIPSocket;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
0 3 2 reverse Z
1 3 3 address Ljava/net/InetSocketAddress;
MethodParameters:
Name Flags
context
reverse
private void checkAddress(org.jruby.runtime.ThreadContext, java.net.InetSocketAddress);
descriptor: (Lorg/jruby/runtime/ThreadContext;Ljava/net/InetSocketAddress;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 2
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "Not socket or not connected"
invokevirtual org.jruby.Ruby.newErrnoENOTSOCKError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/socket/RubyIPSocket;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
0 3 2 address Ljava/net/InetSocketAddress;
MethodParameters:
Name Flags
context
address
private org.jruby.runtime.builtin.IRubyObject peeraddrCommon(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: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokestatic org.jruby.ext.socket.RubyIPSocket.doReverseLookup:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/lang/Boolean;
astore 3
start local 3 1: aload 3
ifnonnull 4
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.isDoNotReverseLookupEnabled:()Z
ifeq 2
iconst_0
goto 3
StackMap locals: java.lang.Boolean
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
astore 3
4: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 3
invokevirtual java.lang.Boolean.booleanValue:()Z
invokevirtual org.jruby.ext.socket.RubyIPSocket.peeraddrCommon:(Lorg/jruby/runtime/ThreadContext;Z)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/socket/RubyIPSocket;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
0 5 2 reverse Lorg/jruby/runtime/builtin/IRubyObject;
1 5 3 doReverse Ljava/lang/Boolean;
MethodParameters:
Name Flags
context
reverse
private org.jruby.runtime.builtin.IRubyObject peeraddrCommon(org.jruby.runtime.ThreadContext, boolean);
descriptor: (Lorg/jruby/runtime/ThreadContext;Z)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.ext.socket.RubyIPSocket.getInetRemoteSocket:()Ljava/net/InetSocketAddress;
astore 3
start local 3 1: aload 0
aload 1
aload 3
invokevirtual org.jruby.ext.socket.RubyIPSocket.checkAddress:(Lorg/jruby/runtime/ThreadContext;Ljava/net/InetSocketAddress;)V
2: aload 0
aload 1
aload 3
iload 2
invokevirtual org.jruby.ext.socket.RubyIPSocket.addrFor:(Lorg/jruby/runtime/ThreadContext;Ljava/net/InetSocketAddress;Z)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/socket/RubyIPSocket;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
0 3 2 reverse Z
1 3 3 address Ljava/net/InetSocketAddress;
MethodParameters:
Name Flags
context
reverse
public static java.lang.Boolean doReverseLookup(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/lang/Boolean;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, 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: aload 1
aload 2
invokevirtual org.jruby.Ruby.getTrue:()Lorg/jruby/RubyBoolean;
if_acmpne 3
2: iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
3: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 1
aload 2
invokevirtual org.jruby.Ruby.getFalse:()Lorg/jruby/RubyBoolean;
if_acmpne 5
4: iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
5: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpne 7
6: aconst_null
areturn
7: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.jruby.Ruby.getSymbol:()Lorg/jruby/RubyClass;
invokestatic org.jruby.util.TypeConverter.checkType:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;)V
8: aload 1
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
dup
astore 3
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 2
-2000413939: 9
-299803597: 10
default: 13
}
StackMap locals: java.lang.String
StackMap stack:
9: aload 3
ldc "numeric"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
goto 13
StackMap locals:
StackMap stack:
10: aload 3
ldc "hostname"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 12
goto 13
11: StackMap locals:
StackMap stack:
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
12: StackMap locals:
StackMap stack:
iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
13: StackMap locals:
StackMap stack:
aload 2
new java.lang.StringBuilder
dup
ldc "invalid reverse_lookup flag: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
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 noreverse Lorg/jruby/runtime/builtin/IRubyObject;
1 14 2 runtime Lorg/jruby/Ruby;
MethodParameters:
Name Flags
context
noreverse
public org.jruby.runtime.builtin.IRubyObject addr();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual org.jruby.ext.socket.RubyIPSocket.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
invokevirtual org.jruby.ext.socket.RubyIPSocket.addr:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/socket/RubyIPSocket;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public org.jruby.runtime.builtin.IRubyObject peeraddr();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual org.jruby.ext.socket.RubyIPSocket.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
invokevirtual org.jruby.ext.socket.RubyIPSocket.peeraddr:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/socket/RubyIPSocket;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public static org.jruby.runtime.builtin.IRubyObject getaddress(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (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=2, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 0
aload 1
invokestatic org.jruby.ext.socket.RubyIPSocket.getaddress:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 1 hostname Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
recv
hostname
public org.jruby.runtime.builtin.IRubyObject recvfrom(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: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
arraylength
tableswitch { // 1 - 2
1: 1
2: 2
default: 3
}
1: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
invokevirtual org.jruby.ext.socket.RubyIPSocket.recvfrom:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aaload
aload 2
iconst_1
aaload
invokevirtual org.jruby.ext.socket.RubyIPSocket.recvfrom:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
iconst_1
iconst_2
invokestatic org.jruby.runtime.Arity.raiseArgumentError:(Lorg/jruby/Ruby;[Lorg/jruby/runtime/builtin/IRubyObject;II)V
4: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/socket/RubyIPSocket;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
0 5 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
context
args
}
SourceFile: "RubyIPSocket.java"
NestMembers:
org.jruby.ext.socket.RubyIPSocket$1
InnerClasses:
org.jruby.ext.socket.RubyIPSocket$1
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"IPSocket"}, parent = "BasicSocket")