public class org.jruby.ext.socket.RubyUDPSocket extends org.jruby.ext.socket.RubyIPSocket
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ext.socket.RubyUDPSocket
super_class: org.jruby.ext.socket.RubyIPSocket
{
private static org.jruby.runtime.ObjectAllocator UDPSOCKET_ALLOCATOR;
descriptor: Lorg/jruby/runtime/ObjectAllocator;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private volatile java.lang.Class<? extends java.net.InetAddress> explicitFamily;
descriptor: Ljava/lang/Class;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/lang/Class<+Ljava/net/InetAddress;>;
private volatile java.net.ProtocolFamily family;
descriptor: Ljava/net/ProtocolFamily;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.jruby.ext.socket.RubyUDPSocket$1
dup
invokespecial org.jruby.ext.socket.RubyUDPSocket$1.<init>:()V
putstatic org.jruby.ext.socket.RubyUDPSocket.UDPSOCKET_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
1: return
LocalVariableTable:
Start End Slot Name Signature
static void createUDPSocket(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 "UDPSocket"
aload 0
ldc "IPSocket"
invokevirtual org.jruby.Ruby.getClass:(Ljava/lang/String;)Lorg/jruby/RubyClass;
getstatic org.jruby.ext.socket.RubyUDPSocket.UDPSOCKET_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
aload 0
ldc "Socket"
invokevirtual org.jruby.Ruby.getClass:(Ljava/lang/String;)Lorg/jruby/RubyClass;
ldc "Constants"
invokevirtual org.jruby.RubyClass.getConstant:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.RubyClass.includeModule:(Lorg/jruby/runtime/builtin/IRubyObject;)V
2: aload 1
ldc Lorg/jruby/ext/socket/RubyUDPSocket;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
3: aload 0
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
ldc "UDPsocket"
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_cUDPSocket 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.RubyIPSocket.<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/RubyUDPSocket;
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 initialize(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
getstatic java.net.StandardProtocolFamily.INET:Ljava/net/StandardProtocolFamily;
invokevirtual org.jruby.ext.socket.RubyUDPSocket.initialize:(Lorg/jruby/runtime/ThreadContext;Ljava/net/ProtocolFamily;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/socket/RubyUDPSocket;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject initialize(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=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic org.jruby.ext.socket.SocketUtils.addressFamilyFromArg:(Lorg/jruby/runtime/builtin/IRubyObject;)Ljnr/constants/platform/AddressFamily;
astore 3
start local 3 1: aload 3
getstatic jnr.constants.platform.AddressFamily.AF_INET:Ljnr/constants/platform/AddressFamily;
if_acmpne 4
2: aload 0
ldc Ljava/net/Inet4Address;
putfield org.jruby.ext.socket.RubyUDPSocket.explicitFamily:Ljava/lang/Class;
3: aload 0
aload 1
getstatic java.net.StandardProtocolFamily.INET:Ljava/net/StandardProtocolFamily;
invokevirtual org.jruby.ext.socket.RubyUDPSocket.initialize:(Lorg/jruby/runtime/ThreadContext;Ljava/net/ProtocolFamily;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
4: StackMap locals: jnr.constants.platform.AddressFamily
StackMap stack:
aload 3
getstatic jnr.constants.platform.AddressFamily.AF_INET6:Ljnr/constants/platform/AddressFamily;
if_acmpne 7
5: aload 0
ldc Ljava/net/Inet6Address;
putfield org.jruby.ext.socket.RubyUDPSocket.explicitFamily:Ljava/lang/Class;
6: aload 0
aload 1
getstatic java.net.StandardProtocolFamily.INET6:Ljava/net/StandardProtocolFamily;
invokevirtual org.jruby.ext.socket.RubyUDPSocket.initialize:(Lorg/jruby/runtime/ThreadContext;Ljava/net/ProtocolFamily;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
7: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "invalid family for UDPSocket: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newErrnoEAFNOSUPPORTError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ext/socket/RubyUDPSocket;
0 8 1 context Lorg/jruby/runtime/ThreadContext;
0 8 2 _family Lorg/jruby/runtime/builtin/IRubyObject;
1 8 3 family Ljnr/constants/platform/AddressFamily;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
_family
public org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.ThreadContext, java.net.ProtocolFamily);
descriptor: (Lorg/jruby/runtime/ThreadContext;Ljava/net/ProtocolFamily;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, 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 2
putfield org.jruby.ext.socket.RubyUDPSocket.family:Ljava/net/ProtocolFamily;
2: aload 2
invokestatic java.nio.channels.DatagramChannel.open:(Ljava/net/ProtocolFamily;)Ljava/nio/channels/DatagramChannel;
astore 4
start local 4 3: aload 0
aload 3
aload 4
invokestatic org.jruby.ext.socket.RubyUDPSocket.newChannelFD:(Lorg/jruby/Ruby;Ljava/nio/channels/Channel;)Lorg/jruby/util/io/ChannelFD;
invokevirtual org.jruby.ext.socket.RubyUDPSocket.initSocket:(Lorg/jruby/util/io/ChannelFD;)V
end local 4 4: goto 15
StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext java.net.ProtocolFamily org.jruby.Ruby
StackMap stack: java.net.ConnectException
5: pop
6: aload 3
invokevirtual org.jruby.Ruby.newErrnoECONNREFUSEDError:()Lorg/jruby/exceptions/RaiseException;
athrow
7: StackMap locals:
StackMap stack: java.net.UnknownHostException
pop
8: aload 3
ldc "initialize: name or service not known"
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
9: StackMap locals:
StackMap stack: java.lang.UnsupportedOperationException
astore 4
start local 4 10: aload 4
invokevirtual java.lang.UnsupportedOperationException.getMessage:()Ljava/lang/String;
ldc "IPv6 not available"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 12
11: aload 3
ldc "socket(2) - udp"
invokevirtual org.jruby.Ruby.newErrnoEAFNOSUPPORTError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
12: StackMap locals: java.lang.UnsupportedOperationException
StackMap stack:
aload 3
new java.lang.StringBuilder
dup
ldc "UnsupportedOperationException: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.UnsupportedOperationException.getLocalizedMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokestatic org.jruby.ext.socket.RubyUDPSocket.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/RuntimeException;
athrow
end local 4 13: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext java.net.ProtocolFamily org.jruby.Ruby
StackMap stack: java.io.IOException
astore 4
start local 4 14: aload 3
ldc "initialize: name or service not known"
aload 4
invokestatic org.jruby.ext.socket.RubyUDPSocket.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/RuntimeException;
athrow
end local 4 15: StackMap locals:
StackMap stack:
aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/jruby/ext/socket/RubyUDPSocket;
0 16 1 context Lorg/jruby/runtime/ThreadContext;
0 16 2 family Ljava/net/ProtocolFamily;
1 16 3 runtime Lorg/jruby/Ruby;
3 4 4 channel Ljava/nio/channels/DatagramChannel;
10 13 4 uoe Ljava/lang/UnsupportedOperationException;
14 15 4 e Ljava/io/IOException;
Exception table:
from to target type
1 4 5 Class java.net.ConnectException
1 4 7 Class java.net.UnknownHostException
1 4 9 Class java.lang.UnsupportedOperationException
1 4 13 Class java.io.IOException
MethodParameters:
Name Flags
context
family
public org.jruby.runtime.builtin.IRubyObject bind(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=4, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 4
start local 4 1: aload 3
invokestatic org.jruby.ext.socket.SocketUtils.portToInt:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 6
start local 6 2: aload 0
invokevirtual org.jruby.ext.socket.RubyUDPSocket.getChannel:()Ljava/nio/channels/Channel;
astore 7
start local 7 3: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 5
4: aload 2
instanceof org.jruby.RubyString
ifeq 7
aload 2
checkcast org.jruby.RubyString
invokevirtual org.jruby.RubyString.isEmpty:()Z
ifeq 7
5: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby top int java.nio.channels.Channel
StackMap stack:
new java.net.InetSocketAddress
dup
iload 6
invokespecial java.net.InetSocketAddress.<init>:(I)V
astore 5
start local 5 6: goto 25
end local 5 7: StackMap locals:
StackMap stack:
aload 2
instanceof org.jruby.RubyFixnum
ifeq 24
8: iconst_0
istore 8
start local 8 9: aload 2
instanceof org.jruby.RubyInteger
ifeq 12
10: aload 2
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 8
11: goto 16
StackMap locals: int
StackMap stack:
12: aload 2
instanceof org.jruby.RubyString
ifeq 15
13: aload 2
checkcast org.jruby.RubyString
invokevirtual org.jruby.RubyString.to_i:()Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToInteger:()Lorg/jruby/RubyInteger;
invokevirtual org.jruby.RubyInteger.getIntValue:()I
istore 8
14: goto 16
15: StackMap locals:
StackMap stack:
aload 4
aload 2
aload 4
invokevirtual org.jruby.Ruby.getInteger:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.Ruby.newTypeError:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;)Lorg/jruby/exceptions/RaiseException;
athrow
16: StackMap locals:
StackMap stack:
aload 4
ldc "Socket"
invokevirtual org.jruby.Ruby.getModule:(Ljava/lang/String;)Lorg/jruby/RubyModule;
astore 9
start local 9 17: iload 8
aload 9
ldc "INADDR_ANY"
invokevirtual org.jruby.RubyModule.getConstant:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
if_icmpne 20
18: new java.net.InetSocketAddress
dup
ldc "0.0.0.0"
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
iload 6
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
astore 5
start local 5 19: goto 25
end local 5 20: StackMap locals: org.jruby.RubyModule
StackMap stack:
aload 0
getfield org.jruby.ext.socket.RubyUDPSocket.multicastStateManager:Lorg/jruby/ext/socket/MulticastStateManager;
ifnonnull 22
21: aload 4
new java.lang.StringBuilder
dup
ldc "bind with host: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 8
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newNotImplementedError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
22: StackMap locals:
StackMap stack:
aconst_null
astore 5
end local 9 end local 8 start local 5 23: goto 25
end local 5 24: StackMap locals:
StackMap stack:
new java.net.InetSocketAddress
dup
aload 2
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;
iload 6
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
astore 5
start local 5 25: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby java.net.InetSocketAddress int java.nio.channels.Channel
StackMap stack:
aload 0
getfield org.jruby.ext.socket.RubyUDPSocket.multicastStateManager:Lorg/jruby/ext/socket/MulticastStateManager;
ifnonnull 28
26: aload 7
checkcast java.nio.channels.DatagramChannel
aload 5
invokevirtual java.nio.channels.DatagramChannel.bind:(Ljava/net/SocketAddress;)Ljava/nio/channels/DatagramChannel;
pop
27: goto 29
28: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.socket.RubyUDPSocket.multicastStateManager:Lorg/jruby/ext/socket/MulticastStateManager;
iload 6
invokevirtual org.jruby.ext.socket.MulticastStateManager.rebindToPort:(I)V
29: StackMap locals:
StackMap stack:
aload 4
invokestatic org.jruby.RubyFixnum.zero:(Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
30: areturn
end local 7 end local 5 31: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby top int
StackMap stack: java.nio.channels.UnsupportedAddressTypeException
pop
32: aload 0
getfield org.jruby.ext.socket.RubyUDPSocket.family:Ljava/net/ProtocolFamily;
ifnonnull 33
getstatic java.net.StandardProtocolFamily.INET:Ljava/net/StandardProtocolFamily;
goto 34
StackMap locals:
StackMap stack:
33: aload 0
getfield org.jruby.ext.socket.RubyUDPSocket.family:Ljava/net/ProtocolFamily;
StackMap locals:
StackMap stack: java.net.ProtocolFamily
34: astore 7
start local 7 35: aload 4
new java.lang.StringBuilder
dup
ldc "bind: unsupported address "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.inspect:()Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " for protocol family "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
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 7 36: StackMap locals:
StackMap stack: java.net.UnknownHostException
pop
37: aload 4
ldc "bind: name or service not known"
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
38: StackMap locals:
StackMap stack: java.net.BindException
astore 7
start local 7 39: aload 4
aload 7
invokevirtual org.jruby.Ruby.newErrnoEADDRFromBindException:(Ljava/net/BindException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 7 40: StackMap locals:
StackMap stack: java.nio.channels.AlreadyBoundException
pop
41: aload 4
new java.lang.StringBuilder
dup
ldc "bind(2) for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.inspect:()Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " port "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newErrnoEINVALError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
42: StackMap locals:
StackMap stack: java.net.SocketException
astore 7
start local 7 43: aload 7
invokevirtual java.net.SocketException.getMessage:()Ljava/lang/String;
astore 8
start local 8 44: aload 8
ifnull 48
45: aload 8
dup
astore 9
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 1
-104266004: 46
default: 48
}
StackMap locals: java.net.SocketException java.lang.String java.lang.String
StackMap stack:
46: aload 9
ldc "Permission denied"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 47
goto 48
47: StackMap locals:
StackMap stack:
aload 4
new java.lang.StringBuilder
dup
ldc "bind(2) for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.inspect:()Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " port "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newErrnoEACCESError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
48: StackMap locals:
StackMap stack:
aload 4
ldc "bind: name or service not known"
aload 7
invokestatic org.jruby.ext.socket.RubyUDPSocket.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/RuntimeException;
athrow
end local 8 end local 7 49: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby top int
StackMap stack: java.io.IOException
astore 7
start local 7 50: aload 4
ldc "bind: name or service not known"
aload 7
invokestatic org.jruby.ext.socket.RubyUDPSocket.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/RuntimeException;
athrow
end local 7 end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 51 0 this Lorg/jruby/ext/socket/RubyUDPSocket;
0 51 1 context Lorg/jruby/runtime/ThreadContext;
0 51 2 host Lorg/jruby/runtime/builtin/IRubyObject;
0 51 3 _port Lorg/jruby/runtime/builtin/IRubyObject;
1 51 4 runtime Lorg/jruby/Ruby;
6 7 5 addr Ljava/net/InetSocketAddress;
19 20 5 addr Ljava/net/InetSocketAddress;
23 24 5 addr Ljava/net/InetSocketAddress;
25 31 5 addr Ljava/net/InetSocketAddress;
2 51 6 port I
3 31 7 channel Ljava/nio/channels/Channel;
9 23 8 intAddr I
17 23 9 Socket Lorg/jruby/RubyModule;
35 36 7 family Ljava/net/ProtocolFamily;
39 40 7 e Ljava/net/BindException;
43 49 7 e Ljava/net/SocketException;
44 49 8 message Ljava/lang/String;
50 51 7 e Ljava/io/IOException;
Exception table:
from to target type
2 30 31 Class java.nio.channels.UnsupportedAddressTypeException
2 30 36 Class java.net.UnknownHostException
2 30 38 Class java.net.BindException
2 30 40 Class java.nio.channels.AlreadyBoundException
2 30 42 Class java.net.SocketException
2 30 49 Class java.io.IOException
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
host
_port
public org.jruby.runtime.builtin.IRubyObject connect(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=4, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 4
start local 4 1: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 2
ldc "localhost"
goto 3
StackMap locals: org.jruby.Ruby
StackMap stack:
2: aload 2
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
3: astore 5
start local 5 4: aload 5
invokestatic java.net.InetAddress.getAllByName:(Ljava/lang/String;)[Ljava/net/InetAddress;
astore 6
start local 6 5: iconst_0
istore 7
start local 7 6: goto 17
7: StackMap locals: java.lang.String java.net.InetAddress[] int
StackMap stack:
aload 6
iload 7
aaload
astore 8
start local 8 8: aload 0
getfield org.jruby.ext.socket.RubyUDPSocket.explicitFamily:Ljava/lang/Class;
ifnull 9
aload 0
getfield org.jruby.ext.socket.RubyUDPSocket.explicitFamily:Ljava/lang/Class;
aload 8
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifne 9
goto 16
9: StackMap locals: java.net.InetAddress
StackMap stack:
new java.net.InetSocketAddress
dup
aload 6
iload 7
aaload
aload 3
invokestatic org.jruby.ext.socket.SocketUtils.portToInt:(Lorg/jruby/runtime/builtin/IRubyObject;)I
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
astore 9
start local 9 10: aload 0
invokevirtual org.jruby.ext.socket.RubyUDPSocket.getChannel:()Ljava/nio/channels/Channel;
checkcast java.nio.channels.DatagramChannel
aload 9
invokevirtual java.nio.channels.DatagramChannel.connect:(Ljava/net/SocketAddress;)Ljava/nio/channels/DatagramChannel;
pop
11: aload 4
invokestatic org.jruby.RubyFixnum.zero:(Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
12: areturn
end local 9 13: StackMap locals:
StackMap stack: java.net.NoRouteToHostException
astore 9
start local 9 14: iload 7
iconst_1
iadd
aload 6
arraylength
if_icmpge 15
goto 16
15: StackMap locals: java.net.NoRouteToHostException
StackMap stack:
aload 9
athrow
end local 9 end local 8 16: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
17: iload 7
aload 6
arraylength
if_icmplt 7
end local 7 end local 6 end local 5 18: goto 25
19: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby
StackMap stack: java.net.UnknownHostException
pop
20: aload 4
ldc "connect: name or service not known"
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
21: StackMap locals:
StackMap stack: java.io.IOException
astore 5
start local 5 22: aload 4
aload 5
invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 5 23: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
astore 5
start local 5 24: aload 4
aload 5
invokevirtual java.lang.IllegalArgumentException.getLocalizedMessage:()Ljava/lang/String;
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
end local 5 25: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lorg/jruby/ext/socket/RubyUDPSocket;
0 26 1 context Lorg/jruby/runtime/ThreadContext;
0 26 2 _host Lorg/jruby/runtime/builtin/IRubyObject;
0 26 3 port Lorg/jruby/runtime/builtin/IRubyObject;
1 26 4 runtime Lorg/jruby/Ruby;
4 18 5 host Ljava/lang/String;
5 18 6 addrs [Ljava/net/InetAddress;
6 18 7 i I
8 16 8 a Ljava/net/InetAddress;
10 13 9 addr Ljava/net/InetSocketAddress;
14 16 9 nrthe Ljava/net/NoRouteToHostException;
22 23 5 e Ljava/io/IOException;
24 25 5 e Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
9 12 13 Class java.net.NoRouteToHostException
1 12 19 Class java.net.UnknownHostException
13 18 19 Class java.net.UnknownHostException
1 12 21 Class java.io.IOException
13 18 21 Class java.io.IOException
1 12 23 Class java.lang.IllegalArgumentException
13 18 23 Class java.lang.IllegalArgumentException
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
_host
port
private java.nio.channels.DatagramChannel getDatagramChannel();
descriptor: ()Ljava/nio/channels/DatagramChannel;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.socket.RubyUDPSocket.getChannel:()Ljava/nio/channels/Channel;
checkcast java.nio.channels.DatagramChannel
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/socket/RubyUDPSocket;
public org.jruby.runtime.builtin.IRubyObject recvfrom_nonblock(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
invokestatic org.jruby.ext.socket.RubyUDPSocket.recvfrom_nonblock:(Lorg/jruby/ext/socket/RubyBasicSocket;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/RubyUDPSocket;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(required = 1, optional = 3)
MethodParameters:
Name Flags
context
args
public static org.jruby.runtime.builtin.IRubyObject recvfrom_nonblock(org.jruby.ext.socket.RubyBasicSocket, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/ext/socket/RubyBasicSocket;Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 2
arraylength
istore 3
start local 3 1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
invokestatic org.jruby.ast.util.ArgsUtil.getOptionsArg:(Lorg/jruby/Ruby;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 4
start local 4 2: aload 4
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpeq 3
iinc 3 -1
3: StackMap locals: int org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
dup
astore 7
start local 7 4: dup
astore 6
start local 6 5: astore 5
start local 5 6: iload 3
tableswitch { // 1 - 3
1: 9
2: 8
3: 7
default: 10
}
7: StackMap locals: org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 2
iconst_2
aaload
astore 7
8: StackMap locals:
StackMap stack:
aload 2
iconst_1
aaload
astore 6
9: StackMap locals:
StackMap stack:
aload 2
iconst_0
aaload
astore 5
10: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 5
aload 6
aload 7
aload 1
aload 4
invokestatic org.jruby.ext.socket.RubyUDPSocket.extractExceptionArg:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Z
invokestatic org.jruby.ext.socket.RubyUDPSocket.recvfrom_nonblock:(Lorg/jruby/ext/socket/RubyBasicSocket;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Z)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
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 11 0 socket Lorg/jruby/ext/socket/RubyBasicSocket;
0 11 1 context Lorg/jruby/runtime/ThreadContext;
0 11 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 11 3 argc I
2 11 4 opts Lorg/jruby/runtime/builtin/IRubyObject;
6 11 5 length Lorg/jruby/runtime/builtin/IRubyObject;
5 11 6 flags Lorg/jruby/runtime/builtin/IRubyObject;
4 11 7 str Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
socket
context
args
private static org.jruby.runtime.builtin.IRubyObject recvfrom_nonblock(org.jruby.ext.socket.RubyBasicSocket, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, boolean);
descriptor: (Lorg/jruby/ext/socket/RubyBasicSocket;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Z)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=9, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 6
start local 6 1: aload 0
aload 6
aload 2
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
invokestatic org.jruby.ext.socket.RubyUDPSocket.doReceiveNonblockTuple:(Lorg/jruby/ext/socket/RubyBasicSocket;Lorg/jruby/Ruby;I)Lorg/jruby/ext/socket/RubyBasicSocket$ReceiveTuple;
astore 7
start local 7 2: aload 7
ifnonnull 6
3: iload 5
ifne 5
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "wait_readable"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
4: areturn
5: StackMap locals: org.jruby.Ruby org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "recvfrom(2)"
invokevirtual org.jruby.Ruby.newErrnoEAGAINReadableError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
6: StackMap locals:
StackMap stack:
aload 4
ifnull 10
aload 4
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 10
7: aload 4
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
astore 4
8: aload 4
checkcast org.jruby.RubyString
aload 7
getfield org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple.result:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.RubyString.setValue:(Lorg/jruby/util/ByteList;)V
9: goto 11
10: StackMap locals:
StackMap stack:
aload 7
getfield org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple.result:Lorg/jruby/RubyString;
astore 4
11: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 7
getfield org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple.sender:Ljava/net/InetSocketAddress;
iconst_0
invokevirtual org.jruby.ext.socket.RubyBasicSocket.addrFor:(Lorg/jruby/runtime/ThreadContext;Ljava/net/InetSocketAddress;Z)Lorg/jruby/runtime/builtin/IRubyObject;
astore 8
start local 8 12: aload 6
aload 4
aload 8
invokevirtual org.jruby.Ruby.newArray:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
13: areturn
end local 8 end local 7 14: StackMap locals: org.jruby.ext.socket.RubyBasicSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject int org.jruby.Ruby
StackMap stack: java.net.UnknownHostException
pop
15: aload 6
ldc "recvfrom: name or service not known"
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
16: StackMap locals:
StackMap stack: java.net.PortUnreachableException
pop
17: aload 6
invokevirtual org.jruby.Ruby.newErrnoECONNREFUSEDError:()Lorg/jruby/exceptions/RaiseException;
athrow
18: StackMap locals:
StackMap stack: java.io.IOException
astore 7
start local 7 19: aload 6
aload 7
invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 7 20: StackMap locals:
StackMap stack: org.jruby.exceptions.RaiseException
astore 7
start local 7 21: aload 7
athrow
end local 7 22: StackMap locals:
StackMap stack: java.lang.Exception
astore 7
start local 7 23: aload 6
aload 7
invokevirtual java.lang.Exception.getLocalizedMessage:()Ljava/lang/String;
aload 7
invokestatic org.jruby.ext.socket.RubyUDPSocket.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/RuntimeException;
athrow
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 24 0 socket Lorg/jruby/ext/socket/RubyBasicSocket;
0 24 1 context Lorg/jruby/runtime/ThreadContext;
0 24 2 length Lorg/jruby/runtime/builtin/IRubyObject;
0 24 3 flags Lorg/jruby/runtime/builtin/IRubyObject;
0 24 4 str Lorg/jruby/runtime/builtin/IRubyObject;
0 24 5 exception Z
1 24 6 runtime Lorg/jruby/Ruby;
2 14 7 tuple Lorg/jruby/ext/socket/RubyBasicSocket$ReceiveTuple;
12 14 8 addressArray Lorg/jruby/runtime/builtin/IRubyObject;
19 20 7 e Ljava/io/IOException;
21 22 7 e Lorg/jruby/exceptions/RaiseException;
23 24 7 e Ljava/lang/Exception;
Exception table:
from to target type
1 4 14 Class java.net.UnknownHostException
5 13 14 Class java.net.UnknownHostException
1 4 16 Class java.net.PortUnreachableException
5 13 16 Class java.net.PortUnreachableException
1 4 18 Class java.io.IOException
5 13 18 Class java.io.IOException
1 4 20 Class org.jruby.exceptions.RaiseException
5 13 20 Class org.jruby.exceptions.RaiseException
1 4 22 Class java.lang.Exception
5 13 22 Class java.lang.Exception
MethodParameters:
Name Flags
socket
context
length
flags
str
exception
public org.jruby.runtime.builtin.IRubyObject send(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=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 4
start local 4 1: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
astore 6
start local 6 2: aload 6
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 7
start local 7 3: aload 7
invokevirtual org.jruby.util.ByteList.unsafeBytes:()[B
aload 7
invokevirtual org.jruby.util.ByteList.begin:()I
aload 7
invokevirtual org.jruby.util.ByteList.realSize:()I
invokestatic java.nio.ByteBuffer.wrap:([BII)Ljava/nio/ByteBuffer;
astore 8
start local 8 4: aload 0
invokevirtual org.jruby.ext.socket.RubyUDPSocket.getChannel:()Ljava/nio/channels/Channel;
checkcast java.nio.channels.DatagramChannel
aload 8
invokevirtual java.nio.channels.DatagramChannel.write:(Ljava/nio/ByteBuffer;)I
istore 5
start local 5 5: aload 4
iload 5
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
6: areturn
end local 8 end local 7 end local 6 end local 5 7: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby
StackMap stack: java.nio.channels.NotYetConnectedException
pop
8: aload 4
ldc "send(2)"
invokevirtual org.jruby.Ruby.newErrnoEDESTADDRREQError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
9: StackMap locals:
StackMap stack: java.net.UnknownHostException
pop
10: aload 4
ldc "send: name or service not known"
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
11: StackMap locals:
StackMap stack: java.io.IOException
astore 5
start local 5 12: aload 4
aload 5
invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 5 13: StackMap locals:
StackMap stack: org.jruby.exceptions.RaiseException
astore 5
start local 5 14: aload 5
athrow
end local 5 15: StackMap locals:
StackMap stack: java.lang.Exception
astore 5
start local 5 16: aload 4
aload 5
invokevirtual java.lang.Exception.getLocalizedMessage:()Ljava/lang/String;
aload 5
invokestatic org.jruby.ext.socket.RubyUDPSocket.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/RuntimeException;
athrow
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 17 0 this Lorg/jruby/ext/socket/RubyUDPSocket;
0 17 1 context Lorg/jruby/runtime/ThreadContext;
0 17 2 _mesg Lorg/jruby/runtime/builtin/IRubyObject;
0 17 3 _flags Lorg/jruby/runtime/builtin/IRubyObject;
1 17 4 runtime Lorg/jruby/Ruby;
5 7 5 written I
2 7 6 data Lorg/jruby/RubyString;
3 7 7 dataBL Lorg/jruby/util/ByteList;
4 7 8 buf Ljava/nio/ByteBuffer;
12 13 5 e Ljava/io/IOException;
14 15 5 e Lorg/jruby/exceptions/RaiseException;
16 17 5 e Ljava/lang/Exception;
Exception table:
from to target type
1 6 7 Class java.nio.channels.NotYetConnectedException
1 6 9 Class java.net.UnknownHostException
1 6 11 Class java.io.IOException
1 6 13 Class org.jruby.exceptions.RaiseException
1 6 15 Class java.lang.Exception
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
_mesg
_flags
public org.jruby.runtime.builtin.IRubyObject send(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=17, 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 2
iconst_0
aaload
astore 4
start local 4 2: aload 2
iconst_1
aaload
astore 5
start local 5 3: aload 2
arraylength
iconst_2
if_icmpne 6
4: aload 0
aload 1
aload 4
aload 5
invokevirtual org.jruby.ext.socket.RubyUDPSocket.send:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
5: areturn
6: StackMap locals: org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 2
arraylength
iconst_3
if_icmpne 16
7: aload 2
iconst_2
aaload
astore 10
start local 10 8: aload 10
instanceof org.jruby.ext.socket.Addrinfo
ifeq 12
9: aload 10
checkcast org.jruby.ext.socket.Addrinfo
invokevirtual org.jruby.ext.socket.Addrinfo.getInetSocketAddress:()Ljava/net/InetSocketAddress;
astore 9
start local 9 10: aload 9
ifnonnull 13
11: aload 3
ldc "need AF_INET or AF_INET6 address"
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
end local 9 12: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject top top top top org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 1
aload 10
invokestatic org.jruby.util.io.Sockaddr.addressFromSockaddr_in:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/net/InetSocketAddress;
astore 9
start local 9 13: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject top top top java.net.InetSocketAddress org.jruby.runtime.builtin.IRubyObject
StackMap stack:
iconst_1
anewarray java.net.InetAddress
dup
iconst_0
aload 9
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
aastore
astore 7
start local 7 14: aload 9
invokevirtual java.net.InetSocketAddress.getPort:()I
istore 8
end local 10 end local 9 start local 8 15: goto 28
end local 8 end local 7 16: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 2
iconst_2
aaload
astore 9
start local 9 17: aload 2
iconst_3
aaload
astore 10
start local 10 18: aload 9
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
astore 11
start local 11 19: aload 10
instanceof org.jruby.RubyString
ifeq 26
20: aload 10
invokeinterface org.jruby.runtime.builtin.IRubyObject.asJavaString:()Ljava/lang/String;
ldc "udp"
invokestatic jnr.netdb.Service.getServiceByName:(Ljava/lang/String;Ljava/lang/String;)Ljnr/netdb/Service;
astore 12
start local 12 21: aload 12
ifnull 24
22: aload 12
invokevirtual jnr.netdb.Service.getPort:()I
istore 8
start local 8 23: goto 27
end local 8 24: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject top top top org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.RubyString jnr.netdb.Service
StackMap stack:
aload 10
ldc "to_i"
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToInteger:(Ljava/lang/String;)Lorg/jruby/RubyInteger;
invokevirtual org.jruby.RubyInteger.getLongValue:()J
l2i
istore 8
end local 12 start local 8 25: goto 27
end local 8 26: StackMap locals:
StackMap stack:
aload 10
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToInteger:()Lorg/jruby/RubyInteger;
invokevirtual org.jruby.RubyInteger.getLongValue:()J
l2i
istore 8
start local 8 27: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject top top int org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject org.jruby.RubyString
StackMap stack:
aload 11
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokestatic org.jruby.ext.socket.SocketUtils.getRubyInetAddresses:(Lorg/jruby/util/ByteList;)[Ljava/net/InetAddress;
astore 7
end local 11 end local 10 end local 9 start local 7 28: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject top java.net.InetAddress[] int
StackMap stack:
aload 4
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
astore 9
start local 9 29: aload 9
invokevirtual org.jruby.RubyString.getBytes:()[B
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
astore 10
start local 10 30: aload 9
invokevirtual org.jruby.RubyString.getBytes:()[B
astore 11
start local 11 31: iconst_0
istore 13
start local 13 32: goto 50
33: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject top java.net.InetAddress[] int org.jruby.RubyString java.nio.ByteBuffer byte[] top int
StackMap stack:
aload 7
iload 13
aaload
astore 14
start local 14 34: new java.net.InetSocketAddress
dup
aload 14
iload 8
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
astore 15
start local 15 35: aload 0
getfield org.jruby.ext.socket.RubyUDPSocket.multicastStateManager:Lorg/jruby/ext/socket/MulticastStateManager;
ifnonnull 38
36: aload 0
invokevirtual org.jruby.ext.socket.RubyUDPSocket.getChannel:()Ljava/nio/channels/Channel;
checkcast java.nio.channels.DatagramChannel
aload 10
aload 15
invokevirtual java.nio.channels.DatagramChannel.send:(Ljava/nio/ByteBuffer;Ljava/net/SocketAddress;)I
istore 6
start local 6 37: goto 43
end local 6 38: StackMap locals: java.net.InetAddress java.net.InetSocketAddress
StackMap stack:
new java.net.DatagramPacket
dup
aload 11
aload 11
arraylength
aload 15
invokespecial java.net.DatagramPacket.<init>:([BILjava/net/SocketAddress;)V
astore 12
start local 12 39: aload 0
getfield org.jruby.ext.socket.RubyUDPSocket.multicastStateManager:Lorg/jruby/ext/socket/MulticastStateManager;
aload 15
invokevirtual java.net.InetSocketAddress.getPort:()I
invokevirtual org.jruby.ext.socket.MulticastStateManager.rebindToPort:(I)V
40: aload 0
getfield org.jruby.ext.socket.RubyUDPSocket.multicastStateManager:Lorg/jruby/ext/socket/MulticastStateManager;
invokevirtual org.jruby.ext.socket.MulticastStateManager.getMulticastSocket:()Ljava/net/MulticastSocket;
astore 16
start local 16 41: aload 16
aload 12
invokevirtual java.net.MulticastSocket.send:(Ljava/net/DatagramPacket;)V
42: aload 12
invokevirtual java.net.DatagramPacket.getLength:()I
istore 6
end local 16 end local 12 start local 6 43: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject int java.net.InetAddress[] int org.jruby.RubyString java.nio.ByteBuffer byte[] top int java.net.InetAddress java.net.InetSocketAddress
StackMap stack:
aload 3
iload 6
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
44: areturn
end local 6 45: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject top java.net.InetAddress[] int org.jruby.RubyString java.nio.ByteBuffer byte[] top int java.net.InetAddress java.net.InetSocketAddress
StackMap stack: java.net.NoRouteToHostException
astore 16
start local 16 46: iload 13
iconst_1
iadd
aload 7
arraylength
if_icmpge 48
47: goto 49
48: StackMap locals: java.net.NoRouteToHostException
StackMap stack:
aload 16
athrow
end local 16 end local 15 end local 14 49: StackMap locals:
StackMap stack:
iinc 13 1
StackMap locals:
StackMap stack:
50: iload 13
aload 7
arraylength
if_icmplt 33
end local 13 end local 11 end local 10 end local 9 end local 8 end local 7 51: goto 66
StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject
StackMap stack: java.net.UnknownHostException
52: pop
53: aload 3
ldc "send: name or service not known"
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
54: StackMap locals:
StackMap stack: java.io.IOException
astore 6
start local 6 55: aload 6
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
astore 7
start local 7 56: aload 7
ifnull 61
57: aload 7
dup
astore 8
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 2
999393398: 58
1694819809: 59
default: 61
}
StackMap locals: java.io.IOException java.lang.String java.lang.String
StackMap stack:
58: aload 8
ldc "Message too large"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 60
goto 61
StackMap locals:
StackMap stack:
59: aload 8
ldc "Message too long"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 60
goto 61
60: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.jruby.Ruby.newErrnoEMSGSIZEError:()Lorg/jruby/exceptions/RaiseException;
athrow
61: StackMap locals:
StackMap stack:
aload 3
aload 6
invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 7 end local 6 62: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject[] org.jruby.Ruby org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject
StackMap stack: org.jruby.exceptions.RaiseException
astore 6
start local 6 63: aload 6
athrow
end local 6 64: StackMap locals:
StackMap stack: java.lang.Exception
astore 6
start local 6 65: aload 3
aload 6
invokevirtual java.lang.Exception.getLocalizedMessage:()Ljava/lang/String;
aload 6
invokestatic org.jruby.ext.socket.RubyUDPSocket.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/RuntimeException;
athrow
end local 6 66: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
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 67 0 this Lorg/jruby/ext/socket/RubyUDPSocket;
0 67 1 context Lorg/jruby/runtime/ThreadContext;
0 67 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 67 3 runtime Lorg/jruby/Ruby;
2 67 4 _mesg Lorg/jruby/runtime/builtin/IRubyObject;
3 67 5 _flags Lorg/jruby/runtime/builtin/IRubyObject;
37 38 6 written I
43 45 6 written I
14 16 7 addrs [Ljava/net/InetAddress;
28 51 7 addrs [Ljava/net/InetAddress;
15 16 8 port I
23 24 8 port I
25 26 8 port I
27 51 8 port I
10 12 9 sockAddress Ljava/net/InetSocketAddress;
13 15 9 sockAddress Ljava/net/InetSocketAddress;
8 15 10 sockaddr Lorg/jruby/runtime/builtin/IRubyObject;
17 28 9 _host Lorg/jruby/runtime/builtin/IRubyObject;
18 28 10 _port Lorg/jruby/runtime/builtin/IRubyObject;
19 28 11 nameStr Lorg/jruby/RubyString;
21 25 12 service Ljnr/netdb/Service;
29 51 9 data Lorg/jruby/RubyString;
30 51 10 buf Ljava/nio/ByteBuffer;
31 51 11 buf2 [B
39 43 12 sendDP Ljava/net/DatagramPacket;
32 51 13 i I
34 49 14 inetAddress Ljava/net/InetAddress;
35 49 15 addr Ljava/net/InetSocketAddress;
41 43 16 ms Ljava/net/MulticastSocket;
46 49 16 nrthe Ljava/net/NoRouteToHostException;
55 62 6 e Ljava/io/IOException;
56 62 7 message Ljava/lang/String;
63 64 6 e Lorg/jruby/exceptions/RaiseException;
65 66 6 e Ljava/lang/Exception;
Exception table:
from to target type
35 44 45 Class java.net.NoRouteToHostException
3 5 52 Class java.net.UnknownHostException
6 44 52 Class java.net.UnknownHostException
45 51 52 Class java.net.UnknownHostException
3 5 54 Class java.io.IOException
6 44 54 Class java.io.IOException
45 51 54 Class java.io.IOException
3 5 62 Class org.jruby.exceptions.RaiseException
6 44 62 Class org.jruby.exceptions.RaiseException
45 51 62 Class org.jruby.exceptions.RaiseException
3 5 64 Class java.lang.Exception
6 44 64 Class java.lang.Exception
45 51 64 Class java.lang.Exception
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(required = 2, optional = 2)
MethodParameters:
Name Flags
context
args
public static org.jruby.runtime.builtin.IRubyObject open(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 0
ldc "new"
aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.callMethod:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.ext.socket.RubyUDPSocket
astore 4
start local 4 1: aload 3
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifne 3
2: aload 4
areturn
3: StackMap locals: org.jruby.ext.socket.RubyUDPSocket
StackMap stack:
aload 3
aload 0
aload 4
invokevirtual org.jruby.runtime.Block.yield:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 6
4: aload 4
getfield org.jruby.ext.socket.RubyUDPSocket.openFile:Lorg/jruby/util/io/OpenFile;
invokevirtual org.jruby.util.io.OpenFile.isOpen:()Z
ifeq 6
5: aload 4
invokevirtual org.jruby.ext.socket.RubyUDPSocket.close:()V
6: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject[] org.jruby.runtime.Block org.jruby.ext.socket.RubyUDPSocket top org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 6
areturn
7: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject[] org.jruby.runtime.Block org.jruby.ext.socket.RubyUDPSocket
StackMap stack: java.lang.Throwable
astore 5
8: aload 4
getfield org.jruby.ext.socket.RubyUDPSocket.openFile:Lorg/jruby/util/io/OpenFile;
invokevirtual org.jruby.util.io.OpenFile.isOpen:()Z
ifeq 10
9: aload 4
invokevirtual org.jruby.ext.socket.RubyUDPSocket.close:()V
10: StackMap locals: java.lang.Throwable
StackMap stack:
aload 5
athrow
end local 4 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 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 11 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 11 3 block Lorg/jruby/runtime/Block;
1 11 4 sock Lorg/jruby/ext/socket/RubyUDPSocket;
Exception table:
from to target type
3 4 7 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(rest = true, meta = true)
MethodParameters:
Name Flags
context
recv
args
block
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=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.ext.socket.RubyUDPSocket.recvfrom:(Lorg/jruby/ext/socket/RubyBasicSocket;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/RubyUDPSocket;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 length Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
length
public static org.jruby.runtime.builtin.IRubyObject recvfrom(org.jruby.ext.socket.RubyBasicSocket, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/ext/socket/RubyBasicSocket;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, 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 3
iconst_0
aload 2
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
invokestatic org.jruby.ext.socket.RubyUDPSocket.doReceiveTuple:(Lorg/jruby/ext/socket/RubyBasicSocket;Lorg/jruby/Ruby;ZI)Lorg/jruby/ext/socket/RubyBasicSocket$ReceiveTuple;
astore 4
start local 4 2: aload 0
aload 1
aload 4
getfield org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple.sender:Ljava/net/InetSocketAddress;
iconst_0
invokevirtual org.jruby.ext.socket.RubyBasicSocket.addrFor:(Lorg/jruby/runtime/ThreadContext;Ljava/net/InetSocketAddress;Z)Lorg/jruby/runtime/builtin/IRubyObject;
astore 5
start local 5 3: aload 3
aload 4
getfield org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple.result:Lorg/jruby/RubyString;
aload 5
invokevirtual org.jruby.Ruby.newArray:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
4: areturn
end local 5 end local 4 5: StackMap locals: org.jruby.ext.socket.RubyBasicSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby
StackMap stack: java.net.UnknownHostException
pop
6: aload 3
ldc "recvfrom: name or service not known"
invokestatic org.jruby.ext.socket.SocketUtils.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
7: StackMap locals:
StackMap stack: java.net.PortUnreachableException
pop
8: aload 3
invokevirtual org.jruby.Ruby.newErrnoECONNREFUSEDError:()Lorg/jruby/exceptions/RaiseException;
athrow
9: StackMap locals:
StackMap stack: java.io.IOException
astore 4
start local 4 10: aload 3
aload 4
invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 4 11: StackMap locals:
StackMap stack: org.jruby.exceptions.RaiseException
astore 4
start local 4 12: aload 4
athrow
end local 4 13: StackMap locals:
StackMap stack: java.lang.Exception
astore 4
start local 4 14: aload 3
aload 4
invokevirtual java.lang.Exception.getLocalizedMessage:()Ljava/lang/String;
aload 4
invokestatic org.jruby.ext.socket.RubyUDPSocket.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/RuntimeException;
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 socket Lorg/jruby/ext/socket/RubyBasicSocket;
0 15 1 context Lorg/jruby/runtime/ThreadContext;
0 15 2 length Lorg/jruby/runtime/builtin/IRubyObject;
1 15 3 runtime Lorg/jruby/Ruby;
2 5 4 tuple Lorg/jruby/ext/socket/RubyBasicSocket$ReceiveTuple;
3 5 5 addressArray Lorg/jruby/runtime/builtin/IRubyObject;
10 11 4 e Ljava/io/IOException;
12 13 4 e Lorg/jruby/exceptions/RaiseException;
14 15 4 e Ljava/lang/Exception;
Exception table:
from to target type
1 4 5 Class java.net.UnknownHostException
1 4 7 Class java.net.PortUnreachableException
1 4 9 Class java.io.IOException
1 4 11 Class org.jruby.exceptions.RaiseException
1 4 13 Class java.lang.Exception
MethodParameters:
Name Flags
socket
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.RubyUDPSocket.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/RubyUDPSocket;
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;
MethodParameters:
Name Flags
context
_length
_flags
public org.jruby.runtime.builtin.IRubyObject recv(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=5, 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 3
iconst_0
aload 2
invokestatic org.jruby.RubyNumeric.fix2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
aconst_null
invokestatic org.jruby.ext.socket.RubyUDPSocket.doReceive:(Lorg/jruby/ext/socket/RubyBasicSocket;Lorg/jruby/Ruby;ZILorg/jruby/ext/socket/RubyBasicSocket$ReceiveTuple;)Lorg/jruby/runtime/builtin/IRubyObject;
2: areturn
3: StackMap locals: org.jruby.ext.socket.RubyUDPSocket org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.Ruby
StackMap stack: java.net.PortUnreachableException
pop
4: aload 3
invokevirtual org.jruby.Ruby.newErrnoECONNREFUSEDError:()Lorg/jruby/exceptions/RaiseException;
athrow
5: StackMap locals:
StackMap stack: java.io.IOException
astore 4
start local 4 6: aload 3
aload 4
invokevirtual org.jruby.Ruby.newIOErrorFromException:(Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 4 7: StackMap locals:
StackMap stack: org.jruby.exceptions.RaiseException
astore 4
start local 4 8: aload 4
athrow
end local 4 9: StackMap locals:
StackMap stack: java.lang.Exception
astore 4
start local 4 10: aload 3
aload 4
invokevirtual java.lang.Exception.getLocalizedMessage:()Ljava/lang/String;
aload 4
invokestatic org.jruby.ext.socket.RubyUDPSocket.sockerr:(Lorg/jruby/Ruby;Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/RuntimeException;
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/ext/socket/RubyUDPSocket;
0 11 1 context Lorg/jruby/runtime/ThreadContext;
0 11 2 length Lorg/jruby/runtime/builtin/IRubyObject;
1 11 3 runtime Lorg/jruby/Ruby;
6 7 4 e Ljava/io/IOException;
8 9 4 e Lorg/jruby/exceptions/RaiseException;
10 11 4 e Ljava/lang/Exception;
Exception table:
from to target type
1 2 3 Class java.net.PortUnreachableException
1 2 5 Class java.io.IOException
1 2 7 Class org.jruby.exceptions.RaiseException
1 2 9 Class java.lang.Exception
MethodParameters:
Name Flags
context
length
private static org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple doReceiveTuple(org.jruby.ext.socket.RubyBasicSocket, org.jruby.Ruby, boolean, int);
descriptor: (Lorg/jruby/ext/socket/RubyBasicSocket;Lorg/jruby/Ruby;ZI)Lorg/jruby/ext/socket/RubyBasicSocket$ReceiveTuple;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple
dup
invokespecial org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple.<init>:()V
astore 4
start local 4 1: aload 0
getfield org.jruby.ext.socket.RubyBasicSocket.multicastStateManager:Lorg/jruby/ext/socket/MulticastStateManager;
ifnonnull 4
2: aload 0
aload 1
iload 2
iload 3
aload 4
invokestatic org.jruby.ext.socket.RubyUDPSocket.doReceive:(Lorg/jruby/ext/socket/RubyBasicSocket;Lorg/jruby/Ruby;ZILorg/jruby/ext/socket/RubyBasicSocket$ReceiveTuple;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 5
start local 5 3: goto 5
end local 5 4: StackMap locals: org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple
StackMap stack:
aload 0
aload 1
iload 2
iload 3
aload 4
invokestatic org.jruby.ext.socket.RubyUDPSocket.doReceiveMulticast:(Lorg/jruby/ext/socket/RubyBasicSocket;Lorg/jruby/Ruby;ZILorg/jruby/ext/socket/RubyBasicSocket$ReceiveTuple;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 5
start local 5 5: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 5
ifnonnull 6
aconst_null
goto 7
StackMap locals:
StackMap stack:
6: aload 4
StackMap locals:
StackMap stack: org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple
7: areturn
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 8 0 socket Lorg/jruby/ext/socket/RubyBasicSocket;
0 8 1 runtime Lorg/jruby/Ruby;
0 8 2 non_block Z
0 8 3 length I
1 8 4 tuple Lorg/jruby/ext/socket/RubyBasicSocket$ReceiveTuple;
3 4 5 result Lorg/jruby/runtime/builtin/IRubyObject;
5 8 5 result Lorg/jruby/runtime/builtin/IRubyObject;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
socket
runtime final
non_block final
length
private static org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple doReceiveNonblockTuple(org.jruby.ext.socket.RubyBasicSocket, org.jruby.Ruby, int);
descriptor: (Lorg/jruby/ext/socket/RubyBasicSocket;Lorg/jruby/Ruby;I)Lorg/jruby/ext/socket/RubyBasicSocket$ReceiveTuple;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.ext.socket.RubyBasicSocket.getChannel:()Ljava/nio/channels/Channel;
checkcast java.nio.channels.DatagramChannel
astore 3
start local 3 1: aload 3
invokevirtual java.nio.channels.DatagramChannel.blockingLock:()Ljava/lang/Object;
dup
astore 4
monitorenter
2: aload 3
invokevirtual java.nio.channels.DatagramChannel.isBlocking:()Z
istore 5
start local 5 3: aload 3
iconst_0
invokevirtual java.nio.channels.DatagramChannel.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
pop
4: aload 0
aload 1
iconst_1
iload 2
invokestatic org.jruby.ext.socket.RubyUDPSocket.doReceiveTuple:(Lorg/jruby/ext/socket/RubyBasicSocket;Lorg/jruby/Ruby;ZI)Lorg/jruby/ext/socket/RubyBasicSocket$ReceiveTuple;
astore 7
5: aload 3
iload 5
invokevirtual java.nio.channels.DatagramChannel.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
pop
6: aload 4
monitorexit
7: aload 7
areturn
8: StackMap locals: org.jruby.ext.socket.RubyBasicSocket org.jruby.Ruby int java.nio.channels.DatagramChannel java.lang.Object int
StackMap stack: java.lang.Throwable
astore 6
9: aload 3
iload 5
invokevirtual java.nio.channels.DatagramChannel.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
pop
10: aload 6
athrow
end local 5 11: StackMap locals: org.jruby.ext.socket.RubyBasicSocket org.jruby.Ruby int java.nio.channels.DatagramChannel java.lang.Object
StackMap stack: java.lang.Throwable
aload 4
monitorexit
12: athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 socket Lorg/jruby/ext/socket/RubyBasicSocket;
0 13 1 runtime Lorg/jruby/Ruby;
0 13 2 length I
1 13 3 channel Ljava/nio/channels/DatagramChannel;
3 11 5 oldBlocking Z
Exception table:
from to target type
4 5 8 any
2 7 11 any
8 12 11 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
socket
runtime
length
private static org.jruby.runtime.builtin.IRubyObject doReceive(org.jruby.ext.socket.RubyBasicSocket, org.jruby.Ruby, boolean, int);
descriptor: (Lorg/jruby/ext/socket/RubyBasicSocket;Lorg/jruby/Ruby;ZI)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
iload 3
aconst_null
invokestatic org.jruby.ext.socket.RubyUDPSocket.doReceive:(Lorg/jruby/ext/socket/RubyBasicSocket;Lorg/jruby/Ruby;ZILorg/jruby/ext/socket/RubyBasicSocket$ReceiveTuple;)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 socket Lorg/jruby/ext/socket/RubyBasicSocket;
0 1 1 runtime Lorg/jruby/Ruby;
0 1 2 non_block Z
0 1 3 length I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
socket
runtime final
non_block final
length
protected static org.jruby.runtime.builtin.IRubyObject doReceive(org.jruby.ext.socket.RubyBasicSocket, org.jruby.Ruby, boolean, int, org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple);
descriptor: (Lorg/jruby/ext/socket/RubyBasicSocket;Lorg/jruby/Ruby;ZILorg/jruby/ext/socket/RubyBasicSocket$ReceiveTuple;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=7, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokevirtual org.jruby.ext.socket.RubyBasicSocket.getChannel:()Ljava/nio/channels/Channel;
checkcast java.nio.channels.DatagramChannel
astore 5
start local 5 1: iload 3
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 6
start local 6 2: aload 5
aload 6
invokevirtual java.nio.channels.DatagramChannel.receive:(Ljava/nio/ByteBuffer;)Ljava/net/SocketAddress;
checkcast java.net.InetSocketAddress
astore 7
start local 7 3: aload 7
ifnonnull 7
4: iload 2
ifeq 6
5: aconst_null
areturn
6: StackMap locals: java.nio.channels.DatagramChannel java.nio.ByteBuffer java.net.InetSocketAddress
StackMap stack:
aload 1
invokevirtual org.jruby.Ruby.newErrnoECONNRESETError:()Lorg/jruby/exceptions/RaiseException;
athrow
7: StackMap locals:
StackMap stack:
aload 1
new org.jruby.util.ByteList
dup
aload 6
invokevirtual java.nio.ByteBuffer.array:()[B
iconst_0
aload 6
invokevirtual java.nio.ByteBuffer.position:()I
iconst_0
invokespecial org.jruby.util.ByteList.<init>:([BIIZ)V
invokevirtual org.jruby.Ruby.newString:(Lorg/jruby/util/ByteList;)Lorg/jruby/RubyString;
astore 8
start local 8 8: aload 4
ifnull 11
9: aload 4
aload 8
putfield org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple.result:Lorg/jruby/RubyString;
10: aload 4
aload 7
putfield org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple.sender:Ljava/net/InetSocketAddress;
11: StackMap locals: org.jruby.RubyString
StackMap stack:
aload 8
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 12 0 socket Lorg/jruby/ext/socket/RubyBasicSocket;
0 12 1 runtime Lorg/jruby/Ruby;
0 12 2 non_block Z
0 12 3 length I
0 12 4 tuple Lorg/jruby/ext/socket/RubyBasicSocket$ReceiveTuple;
1 12 5 channel Ljava/nio/channels/DatagramChannel;
2 12 6 buf Ljava/nio/ByteBuffer;
3 12 7 sender Ljava/net/InetSocketAddress;
8 12 8 result Lorg/jruby/RubyString;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
socket
runtime final
non_block final
length
tuple
private static org.jruby.runtime.builtin.IRubyObject doReceiveMulticast(org.jruby.ext.socket.RubyBasicSocket, org.jruby.Ruby, boolean, int, org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple);
descriptor: (Lorg/jruby/ext/socket/RubyBasicSocket;Lorg/jruby/Ruby;ZILorg/jruby/ext/socket/RubyBasicSocket$ReceiveTuple;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new java.net.DatagramPacket
dup
iload 3
newarray 8
iload 3
invokespecial java.net.DatagramPacket.<init>:([BI)V
astore 5
start local 5 1: aload 0
getfield org.jruby.ext.socket.RubyBasicSocket.multicastStateManager:Lorg/jruby/ext/socket/MulticastStateManager;
invokevirtual org.jruby.ext.socket.MulticastStateManager.getMulticastSocket:()Ljava/net/MulticastSocket;
aload 5
invokevirtual java.net.MulticastSocket.receive:(Ljava/net/DatagramPacket;)V
2: goto 6
StackMap locals: org.jruby.ext.socket.RubyBasicSocket org.jruby.Ruby int int org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple java.net.DatagramPacket
StackMap stack: java.nio.channels.IllegalBlockingModeException
3: pop
4: iload 2
ifeq 5
aconst_null
areturn
5: StackMap locals:
StackMap stack:
aload 1
ldc "multicast UDP does not support nonblocking"
invokevirtual org.jruby.Ruby.newErrnoEAGAINReadableError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
6: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.net.DatagramPacket.getSocketAddress:()Ljava/net/SocketAddress;
checkcast java.net.InetSocketAddress
astore 6
start local 6 7: aload 6
ifnonnull 8
aload 1
invokevirtual org.jruby.Ruby.newErrnoECONNRESETError:()Lorg/jruby/exceptions/RaiseException;
athrow
8: StackMap locals: java.net.InetSocketAddress
StackMap stack:
aload 1
new org.jruby.util.ByteList
dup
aload 5
invokevirtual java.net.DatagramPacket.getData:()[B
aload 5
invokevirtual java.net.DatagramPacket.getOffset:()I
aload 5
invokevirtual java.net.DatagramPacket.getLength:()I
iconst_0
invokespecial org.jruby.util.ByteList.<init>:([BIIZ)V
invokevirtual org.jruby.Ruby.newString:(Lorg/jruby/util/ByteList;)Lorg/jruby/RubyString;
astore 7
start local 7 9: aload 4
ifnull 12
10: aload 4
aload 7
putfield org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple.result:Lorg/jruby/RubyString;
11: aload 4
aload 6
putfield org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple.sender:Ljava/net/InetSocketAddress;
12: StackMap locals: org.jruby.RubyString
StackMap stack:
aload 7
areturn
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 13 0 socket Lorg/jruby/ext/socket/RubyBasicSocket;
0 13 1 runtime Lorg/jruby/Ruby;
0 13 2 non_block Z
0 13 3 length I
0 13 4 tuple Lorg/jruby/ext/socket/RubyBasicSocket$ReceiveTuple;
1 13 5 recv Ljava/net/DatagramPacket;
7 13 6 sender Ljava/net/InetSocketAddress;
9 13 7 result Lorg/jruby/RubyString;
Exception table:
from to target type
1 2 3 Class java.nio.channels.IllegalBlockingModeException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
socket
runtime final
non_block final
length
tuple
public org.jruby.runtime.builtin.IRubyObject bind(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: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
invokevirtual org.jruby.ext.socket.RubyUDPSocket.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 1
aload 2
invokevirtual org.jruby.ext.socket.RubyUDPSocket.bind:(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 this Lorg/jruby/ext/socket/RubyUDPSocket;
0 1 1 host Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 port Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
host
port
public org.jruby.runtime.builtin.IRubyObject connect(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: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
invokevirtual org.jruby.ext.socket.RubyUDPSocket.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 1
aload 2
invokevirtual org.jruby.ext.socket.RubyUDPSocket.connect:(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 this Lorg/jruby/ext/socket/RubyUDPSocket;
0 1 1 host Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 port Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
host
port
public org.jruby.runtime.builtin.IRubyObject recvfrom(org.jruby.runtime.builtin.IRubyObject[]);
descriptor: ([Lorg/jruby/runtime/builtin/IRubyObject;)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 0
invokevirtual org.jruby.ext.socket.RubyUDPSocket.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 1
invokevirtual org.jruby.ext.socket.RubyUDPSocket.recvfrom:(Lorg/jruby/runtime/ThreadContext;[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 this Lorg/jruby/ext/socket/RubyUDPSocket;
0 1 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
args
public org.jruby.runtime.builtin.IRubyObject send(org.jruby.runtime.builtin.IRubyObject[]);
descriptor: ([Lorg/jruby/runtime/builtin/IRubyObject;)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 0
invokevirtual org.jruby.ext.socket.RubyUDPSocket.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 1
invokevirtual org.jruby.ext.socket.RubyUDPSocket.send:(Lorg/jruby/runtime/ThreadContext;[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 this Lorg/jruby/ext/socket/RubyUDPSocket;
0 1 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
args
public static org.jruby.runtime.builtin.IRubyObject open(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 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
aload 2
invokestatic org.jruby.ext.socket.RubyUDPSocket.open:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
recv
args
block
}
SourceFile: "RubyUDPSocket.java"
NestMembers:
org.jruby.ext.socket.RubyUDPSocket$1
InnerClasses:
protected ReceiveTuple = org.jruby.ext.socket.RubyBasicSocket$ReceiveTuple of org.jruby.ext.socket.RubyBasicSocket
org.jruby.ext.socket.RubyUDPSocket$1
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"UDPSocket"}, parent = "IPSocket")