public class sun.nio.ch.DatagramSocketAdaptor extends java.net.MulticastSocket
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.nio.ch.DatagramSocketAdaptor
super_class: java.net.MulticastSocket
{
private final sun.nio.ch.DatagramChannelImpl dc;
descriptor: Lsun/nio/ch/DatagramChannelImpl;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile int timeout;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.util.concurrent.locks.ReentrantLock sendLock;
descriptor: Ljava/util/concurrent/locks/ReentrantLock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Object outgoingInterfaceLock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.net.NetworkInterface outgoingNetworkInterface;
descriptor: Ljava/net/NetworkInterface;
flags: (0x0002) ACC_PRIVATE
private java.net.InetAddress outgoingInetAddress;
descriptor: Ljava/net/InetAddress;
flags: (0x0002) ACC_PRIVATE
private void <init>(sun.nio.ch.DatagramChannelImpl);
descriptor: (Lsun/nio/ch/DatagramChannelImpl;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic sun.nio.ch.DatagramSocketAdaptor$DatagramSockets.NO_DELEGATE:Ljava/net/SocketAddress;
invokespecial java.net.MulticastSocket.<init>:(Ljava/net/SocketAddress;)V
1: aload 0
new java.util.concurrent.locks.ReentrantLock
dup
invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
putfield sun.nio.ch.DatagramSocketAdaptor.sendLock:Ljava/util/concurrent/locks/ReentrantLock;
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.ch.DatagramSocketAdaptor.outgoingInterfaceLock:Ljava/lang/Object;
3: aload 0
aload 1
putfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 5 1 dc Lsun/nio/ch/DatagramChannelImpl;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dc
static java.net.DatagramSocket create(sun.nio.ch.DatagramChannelImpl);
descriptor: (Lsun/nio/ch/DatagramChannelImpl;)Ljava/net/DatagramSocket;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new sun.nio.ch.DatagramSocketAdaptor
dup
aload 0
invokespecial sun.nio.ch.DatagramSocketAdaptor.<init>:(Lsun/nio/ch/DatagramChannelImpl;)V
1: areturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 3: new java.lang.Error
dup
aload 1
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 dc Lsun/nio/ch/DatagramChannelImpl;
3 4 1 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
dc
private void connectInternal(java.net.SocketAddress);
descriptor: (Ljava/net/SocketAddress;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 1
iconst_0
invokevirtual sun.nio.ch.DatagramChannelImpl.connect:(Ljava/net/SocketAddress;Z)Ljava/nio/channels/DatagramChannel;
pop
1: goto 5
StackMap locals:
StackMap stack: java.nio.channels.ClosedChannelException
2: pop
goto 5
3: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 4: aload 2
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 6 1 remote Ljava/net/SocketAddress;
4 5 2 x Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.nio.channels.ClosedChannelException
0 1 3 Class java.lang.Exception
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
remote
public void bind(java.net.SocketAddress);
descriptor: (Ljava/net/SocketAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnull 3
1: aload 1
invokestatic sun.nio.ch.Net.asInetSocketAddress:(Ljava/net/SocketAddress;)Ljava/net/InetSocketAddress;
astore 1
2: goto 4
3: StackMap locals:
StackMap stack:
new java.net.InetSocketAddress
dup
iconst_0
invokespecial java.net.InetSocketAddress.<init>:(I)V
astore 1
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 1
invokevirtual sun.nio.ch.DatagramChannelImpl.bind:(Ljava/net/SocketAddress;)Ljava/nio/channels/DatagramChannel;
pop
5: goto 8
StackMap locals:
StackMap stack: java.lang.Exception
6: astore 2
start local 2 7: aload 2
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
end local 2 8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 9 1 local Ljava/net/SocketAddress;
7 8 2 x Ljava/lang/Exception;
Exception table:
from to target type
4 5 6 Class java.lang.Exception
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
local
public void connect(java.net.InetAddress, int);
descriptor: (Ljava/net/InetAddress;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Address can't be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
new java.net.InetSocketAddress
dup
aload 1
iload 2
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
invokevirtual sun.nio.ch.DatagramSocketAdaptor.connectInternal:(Ljava/net/SocketAddress;)V
3: goto 6
StackMap locals:
StackMap stack: java.net.SocketException
4: astore 3
start local 3 5: new java.io.UncheckedIOException
dup
aload 3
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 3 6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 7 1 address Ljava/net/InetAddress;
0 7 2 port I
5 6 3 x Ljava/net/SocketException;
Exception table:
from to target type
2 3 4 Class java.net.SocketException
MethodParameters:
Name Flags
address
port
public void connect(java.net.SocketAddress);
descriptor: (Ljava/net/SocketAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Address can't be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic sun.nio.ch.Net.asInetSocketAddress:(Ljava/net/SocketAddress;)Ljava/net/InetSocketAddress;
invokevirtual sun.nio.ch.DatagramSocketAdaptor.connectInternal:(Ljava/net/SocketAddress;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 4 1 remote Ljava/net/SocketAddress;
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
remote
public void disconnect();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.disconnect:()Ljava/nio/channels/DatagramChannel;
pop
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 1
start local 1 3: new java.io.UncheckedIOException
dup
aload 1
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 1 4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/DatagramSocketAdaptor;
3 4 1 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
public boolean isBound();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.localAddress:()Ljava/net/InetSocketAddress;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/DatagramSocketAdaptor;
public boolean isConnected();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.remoteAddress:()Ljava/net/InetSocketAddress;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/DatagramSocketAdaptor;
public java.net.InetAddress getInetAddress();
descriptor: ()Ljava/net/InetAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.remoteAddress:()Ljava/net/InetSocketAddress;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
goto 3
StackMap locals: java.net.InetSocketAddress
StackMap stack:
2: aconst_null
StackMap locals:
StackMap stack: java.net.InetAddress
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/DatagramSocketAdaptor;
1 4 1 remote Ljava/net/InetSocketAddress;
public int getPort();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.remoteAddress:()Ljava/net/InetSocketAddress;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.net.InetSocketAddress.getPort:()I
goto 3
StackMap locals: java.net.InetSocketAddress
StackMap stack:
2: iconst_m1
StackMap locals:
StackMap stack: int
3: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/DatagramSocketAdaptor;
1 4 1 remote Ljava/net/InetSocketAddress;
public java.net.SocketAddress getRemoteSocketAddress();
descriptor: ()Ljava/net/SocketAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.remoteAddress:()Ljava/net/InetSocketAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
public java.net.SocketAddress getLocalSocketAddress();
descriptor: ()Ljava/net/SocketAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.localAddress:()Ljava/net/InetSocketAddress;
astore 1
start local 1 1: aload 1
ifnull 2
aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.isClosed:()Z
ifeq 3
2: StackMap locals: java.net.InetSocketAddress
StackMap stack:
aconst_null
areturn
3: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
astore 2
start local 2 4: aload 2
invokevirtual java.net.InetAddress.isAnyLocalAddress:()Z
ifeq 6
5: aload 1
areturn
6: StackMap locals: java.net.InetAddress
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 3
start local 3 7: aload 3
ifnull 12
8: aload 3
aload 2
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
iconst_m1
invokevirtual java.lang.SecurityManager.checkConnect:(Ljava/lang/String;I)V
9: goto 12
StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.InetSocketAddress java.net.InetAddress java.lang.SecurityManager
StackMap stack: java.lang.SecurityException
10: pop
11: new java.net.InetSocketAddress
dup
aload 1
invokevirtual java.net.InetSocketAddress.getPort:()I
invokespecial java.net.InetSocketAddress.<init>:(I)V
areturn
12: StackMap locals:
StackMap stack:
aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/ch/DatagramSocketAdaptor;
1 13 1 local Ljava/net/InetSocketAddress;
4 13 2 addr Ljava/net/InetAddress;
7 13 3 sm Ljava/lang/SecurityManager;
Exception table:
from to target type
8 9 10 Class java.lang.SecurityException
public void send(java.net.DatagramPacket);
descriptor: (Ljava/net/DatagramPacket;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 1
dup
astore 4
monitorenter
2: aload 1
invokevirtual java.net.DatagramPacket.getLength:()I
istore 5
start local 5 3: iload 5
invokestatic sun.nio.ch.Util.getTemporaryDirectBuffer:(I)Ljava/nio/ByteBuffer;
astore 2
4: aload 2
aload 1
invokevirtual java.net.DatagramPacket.getData:()[B
aload 1
invokevirtual java.net.DatagramPacket.getOffset:()I
iload 5
invokevirtual java.nio.ByteBuffer.put:([BII)Ljava/nio/ByteBuffer;
pop
5: aload 2
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
6: aload 1
invokevirtual java.net.DatagramPacket.getAddress:()Ljava/net/InetAddress;
ifnonnull 14
7: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.remoteAddress:()Ljava/net/InetSocketAddress;
astore 6
start local 6 8: aload 6
ifnonnull 10
9: new java.lang.IllegalArgumentException
dup
ldc "Address not set"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.DatagramPacket java.nio.ByteBuffer top java.net.DatagramPacket int java.net.InetSocketAddress
StackMap stack:
aload 1
aload 6
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
invokevirtual java.net.DatagramPacket.setAddress:(Ljava/net/InetAddress;)V
11: aload 1
aload 6
invokevirtual java.net.InetSocketAddress.getPort:()I
invokevirtual java.net.DatagramPacket.setPort:(I)V
12: aload 6
astore 3
end local 6 start local 3 13: goto 15
end local 3 14: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.net.DatagramPacket.getSocketAddress:()Ljava/net/SocketAddress;
checkcast java.net.InetSocketAddress
astore 3
end local 5 start local 3 15: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.DatagramPacket java.nio.ByteBuffer java.net.InetSocketAddress java.net.DatagramPacket
StackMap stack:
aload 4
monitorexit
16: goto 19
end local 3 StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.DatagramPacket java.nio.ByteBuffer top java.net.DatagramPacket
StackMap stack: java.lang.Throwable
17: aload 4
monitorexit
18: athrow
start local 3 19: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.DatagramPacket java.nio.ByteBuffer java.net.InetSocketAddress
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 2
aload 3
invokevirtual sun.nio.ch.DatagramChannelImpl.blockingSend:(Ljava/nio/ByteBuffer;Ljava/net/SocketAddress;)V
20: goto 31
StackMap locals:
StackMap stack: java.nio.channels.AlreadyConnectedException
21: pop
22: new java.lang.IllegalArgumentException
dup
ldc "Connected and packet address differ"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
23: StackMap locals:
StackMap stack: java.nio.channels.ClosedChannelException
astore 4
start local 4 24: new java.net.SocketException
dup
ldc "Socket closed"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
astore 5
start local 5 25: aload 5
aload 4
invokevirtual java.net.SocketException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
26: aload 5
athrow
end local 5 end local 4 end local 3 27: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.DatagramPacket java.nio.ByteBuffer
StackMap stack: java.lang.Throwable
astore 7
28: aload 2
ifnull 30
29: aload 2
invokestatic sun.nio.ch.Util.offerFirstTemporaryDirectBuffer:(Ljava/nio/ByteBuffer;)V
30: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.DatagramPacket java.nio.ByteBuffer top top top top java.lang.Throwable
StackMap stack:
aload 7
athrow
31: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.DatagramPacket java.nio.ByteBuffer
StackMap stack:
aload 2
ifnull 33
32: aload 2
invokestatic sun.nio.ch.Util.offerFirstTemporaryDirectBuffer:(Ljava/nio/ByteBuffer;)V
33: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 34 1 p Ljava/net/DatagramPacket;
1 34 2 bb Ljava/nio/ByteBuffer;
13 14 3 target Ljava/net/InetSocketAddress;
15 17 3 target Ljava/net/InetSocketAddress;
19 27 3 target Ljava/net/InetSocketAddress;
3 15 5 len I
8 13 6 remote Ljava/net/InetSocketAddress;
24 27 4 e Ljava/nio/channels/ClosedChannelException;
25 27 5 exc Ljava/net/SocketException;
Exception table:
from to target type
2 16 17 any
17 18 17 any
19 20 21 Class java.nio.channels.AlreadyConnectedException
19 20 23 Class java.nio.channels.ClosedChannelException
1 27 27 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
p
public void receive(java.net.DatagramPacket);
descriptor: (Ljava/net/DatagramPacket;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=10, args_size=2
start local 0 start local 1 0: aload 1
invokestatic sun.nio.ch.DatagramSocketAdaptor$DatagramPackets.getBufLength:(Ljava/net/DatagramPacket;)I
istore 2
start local 2 1: iload 2
invokestatic sun.nio.ch.Util.getTemporaryDirectBuffer:(I)Ljava/nio/ByteBuffer;
astore 3
start local 3 2: getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.timeout:I
i2l
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
lstore 4
start local 4 3: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 3
lload 4
invokevirtual sun.nio.ch.DatagramChannelImpl.blockingReceive:(Ljava/nio/ByteBuffer;J)Ljava/net/SocketAddress;
astore 6
start local 6 4: aload 3
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
5: aload 1
dup
astore 7
monitorenter
6: aload 3
invokevirtual java.nio.ByteBuffer.limit:()I
aload 1
invokestatic sun.nio.ch.DatagramSocketAdaptor$DatagramPackets.getBufLength:(Ljava/net/DatagramPacket;)I
invokestatic java.lang.Math.min:(II)I
istore 8
start local 8 7: aload 3
aload 1
invokevirtual java.net.DatagramPacket.getData:()[B
aload 1
invokevirtual java.net.DatagramPacket.getOffset:()I
iload 8
invokevirtual java.nio.ByteBuffer.get:([BII)Ljava/nio/ByteBuffer;
pop
8: aload 1
iload 8
invokestatic sun.nio.ch.DatagramSocketAdaptor$DatagramPackets.setLength:(Ljava/net/DatagramPacket;I)V
9: aload 1
aload 6
invokevirtual java.net.DatagramPacket.setSocketAddress:(Ljava/net/SocketAddress;)V
end local 8 10: aload 7
monitorexit
11: goto 21
StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.DatagramPacket int java.nio.ByteBuffer long java.net.SocketAddress java.net.DatagramPacket
StackMap stack: java.lang.Throwable
12: aload 7
monitorexit
13: athrow
end local 6 end local 4 14: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.DatagramPacket int java.nio.ByteBuffer
StackMap stack: java.nio.channels.ClosedChannelException
astore 4
start local 4 15: new java.net.SocketException
dup
ldc "Socket closed"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
astore 5
start local 5 16: aload 5
aload 4
invokevirtual java.net.SocketException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
17: aload 5
athrow
end local 5 end local 4 18: StackMap locals:
StackMap stack: java.lang.Throwable
astore 9
19: aload 3
invokestatic sun.nio.ch.Util.offerFirstTemporaryDirectBuffer:(Ljava/nio/ByteBuffer;)V
20: aload 9
athrow
21: StackMap locals:
StackMap stack:
aload 3
invokestatic sun.nio.ch.Util.offerFirstTemporaryDirectBuffer:(Ljava/nio/ByteBuffer;)V
22: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 23 1 p Ljava/net/DatagramPacket;
1 23 2 bufLength I
2 23 3 bb Ljava/nio/ByteBuffer;
3 14 4 nanos J
4 14 6 sender Ljava/net/SocketAddress;
7 10 8 len I
15 18 4 e Ljava/nio/channels/ClosedChannelException;
16 18 5 exc Ljava/net/SocketException;
Exception table:
from to target type
6 11 12 any
12 13 12 any
2 14 14 Class java.nio.channels.ClosedChannelException
2 18 18 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
p
public java.net.InetAddress getLocalAddress();
descriptor: ()Ljava/net/InetAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.isClosed:()Z
ifeq 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.localAddress:()Ljava/net/InetSocketAddress;
astore 1
start local 1 3: aload 1
ifnonnull 5
4: new java.net.InetSocketAddress
dup
iconst_0
invokespecial java.net.InetSocketAddress.<init>:(I)V
astore 1
5: StackMap locals: java.net.InetSocketAddress
StackMap stack:
aload 1
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
astore 2
start local 2 6: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 3
start local 3 7: aload 3
ifnull 12
8: aload 3
aload 2
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
iconst_m1
invokevirtual java.lang.SecurityManager.checkConnect:(Ljava/lang/String;I)V
9: goto 12
StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.InetSocketAddress java.net.InetAddress java.lang.SecurityManager
StackMap stack: java.lang.SecurityException
10: pop
11: new java.net.InetSocketAddress
dup
iconst_0
invokespecial java.net.InetSocketAddress.<init>:(I)V
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
areturn
12: StackMap locals:
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/ch/DatagramSocketAdaptor;
3 13 1 local Ljava/net/InetSocketAddress;
6 13 2 result Ljava/net/InetAddress;
7 13 3 sm Ljava/lang/SecurityManager;
Exception table:
from to target type
8 9 10 Class java.lang.SecurityException
public int getLocalPort();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.isClosed:()Z
ifeq 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.localAddress:()Ljava/net/InetSocketAddress;
astore 1
start local 1 3: aload 1
ifnull 5
4: aload 1
invokevirtual java.net.InetSocketAddress.getPort:()I
ireturn
5: StackMap locals: java.net.InetSocketAddress
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/DatagramSocketAdaptor;
3 6 1 local Ljava/net/InetSocketAddress;
public void setSoTimeout(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.isClosed:()Z
ifeq 2
1: new java.net.SocketException
dup
ldc "Socket is closed"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 1
ifge 4
3: new java.lang.IllegalArgumentException
dup
ldc "timeout < 0"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield sun.nio.ch.DatagramSocketAdaptor.timeout:I
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 6 1 timeout I
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
timeout
public int getSoTimeout();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.isClosed:()Z
ifeq 2
1: new java.net.SocketException
dup
ldc "Socket is closed"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.timeout:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/DatagramSocketAdaptor;
Exceptions:
throws java.net.SocketException
private void setBooleanOption(java.net.SocketOption<java.lang.Boolean>, );
descriptor: (Ljava/net/SocketOption;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 1
iload 2
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual sun.nio.ch.DatagramChannelImpl.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/DatagramChannel;
pop
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 3
start local 3 3: aload 3
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
end local 3 4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 5 1 name Ljava/net/SocketOption<Ljava/lang/Boolean;>;
0 5 2 value Z
3 4 3 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.net.SocketException
Signature: (Ljava/net/SocketOption<Ljava/lang/Boolean;>;Z)V
MethodParameters:
Name Flags
name
value
private void setIntOption(java.net.SocketOption<java.lang.Integer>, );
descriptor: (Ljava/net/SocketOption;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 1
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual sun.nio.ch.DatagramChannelImpl.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/DatagramChannel;
pop
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 3
start local 3 3: aload 3
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
end local 3 4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 5 1 name Ljava/net/SocketOption<Ljava/lang/Integer;>;
0 5 2 value I
3 4 3 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.net.SocketException
Signature: (Ljava/net/SocketOption<Ljava/lang/Integer;>;I)V
MethodParameters:
Name Flags
name
value
private boolean getBooleanOption(java.net.SocketOption<java.lang.Boolean>);
descriptor: (Ljava/net/SocketOption;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 1
invokevirtual sun.nio.ch.DatagramChannelImpl.getOption:(Ljava/net/SocketOption;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
1: ireturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 3: aload 2
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
4: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 5 1 name Ljava/net/SocketOption<Ljava/lang/Boolean;>;
3 5 2 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.net.SocketException
Signature: (Ljava/net/SocketOption<Ljava/lang/Boolean;>;)Z
MethodParameters:
Name Flags
name
private int getIntOption(java.net.SocketOption<java.lang.Integer>);
descriptor: (Ljava/net/SocketOption;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 1
invokevirtual sun.nio.ch.DatagramChannelImpl.getOption:(Ljava/net/SocketOption;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
1: ireturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 3: aload 2
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
4: iconst_m1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 5 1 name Ljava/net/SocketOption<Ljava/lang/Integer;>;
3 5 2 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.net.SocketException
Signature: (Ljava/net/SocketOption<Ljava/lang/Integer;>;)I
MethodParameters:
Name Flags
name
public void setSendBufferSize(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifgt 2
1: new java.lang.IllegalArgumentException
dup
ldc "Invalid send size"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getstatic java.net.StandardSocketOptions.SO_SNDBUF:Ljava/net/SocketOption;
iload 1
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setIntOption:(Ljava/net/SocketOption;I)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 4 1 size I
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
size
public int getSendBufferSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.net.StandardSocketOptions.SO_SNDBUF:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.DatagramSocketAdaptor.getIntOption:(Ljava/net/SocketOption;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
Exceptions:
throws java.net.SocketException
public void setReceiveBufferSize(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifgt 2
1: new java.lang.IllegalArgumentException
dup
ldc "Invalid receive size"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getstatic java.net.StandardSocketOptions.SO_RCVBUF:Ljava/net/SocketOption;
iload 1
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setIntOption:(Ljava/net/SocketOption;I)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 4 1 size I
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
size
public int getReceiveBufferSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.net.StandardSocketOptions.SO_RCVBUF:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.DatagramSocketAdaptor.getIntOption:(Ljava/net/SocketOption;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
Exceptions:
throws java.net.SocketException
public void setReuseAddress(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
iload 1
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setBooleanOption:(Ljava/net/SocketOption;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 2 1 on Z
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
on
public boolean getReuseAddress();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.DatagramSocketAdaptor.getBooleanOption:(Ljava/net/SocketOption;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
Exceptions:
throws java.net.SocketException
public void setBroadcast(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic java.net.StandardSocketOptions.SO_BROADCAST:Ljava/net/SocketOption;
iload 1
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setBooleanOption:(Ljava/net/SocketOption;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 2 1 on Z
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
on
public boolean getBroadcast();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.net.StandardSocketOptions.SO_BROADCAST:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.DatagramSocketAdaptor.getBooleanOption:(Ljava/net/SocketOption;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
Exceptions:
throws java.net.SocketException
public void setTrafficClass(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic java.net.StandardSocketOptions.IP_TOS:Ljava/net/SocketOption;
iload 1
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setIntOption:(Ljava/net/SocketOption;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 2 1 tc I
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
tc
public int getTrafficClass();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.net.StandardSocketOptions.IP_TOS:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.DatagramSocketAdaptor.getIntOption:(Ljava/net/SocketOption;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
Exceptions:
throws java.net.SocketException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.close:()V
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 1
start local 1 3: new java.lang.Error
dup
aload 1
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/DatagramSocketAdaptor;
3 4 1 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
public boolean isClosed();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.isOpen:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/DatagramSocketAdaptor;
public java.nio.channels.DatagramChannel getChannel();
descriptor: ()Ljava/nio/channels/DatagramChannel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
public <T> java.net.DatagramSocket setOption(java.net.SocketOption<T>, T);
descriptor: (Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/net/DatagramSocket;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 1
aload 2
invokevirtual sun.nio.ch.DatagramChannelImpl.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/DatagramChannel;
pop
1: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 2 1 name Ljava/net/SocketOption<TT;>;
0 2 2 value TT;
Exceptions:
throws java.io.IOException
Signature: <T:Ljava/lang/Object;>(Ljava/net/SocketOption<TT;>;TT;)Ljava/net/DatagramSocket;
MethodParameters:
Name Flags
name
value
public <T> T getOption(java.net.SocketOption<T>);
descriptor: (Ljava/net/SocketOption;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 1
invokevirtual sun.nio.ch.DatagramChannelImpl.getOption:(Ljava/net/SocketOption;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 1 1 name Ljava/net/SocketOption<TT;>;
Exceptions:
throws java.io.IOException
Signature: <T:Ljava/lang/Object;>(Ljava/net/SocketOption<TT;>;)TT;
MethodParameters:
Name Flags
name
public java.util.Set<java.net.SocketOption<?>> supportedOptions();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
invokevirtual sun.nio.ch.DatagramChannelImpl.supportedOptions:()Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
Signature: ()Ljava/util/Set<Ljava/net/SocketOption<*>;>;
public void setTTL(byte);
descriptor: (B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokestatic java.lang.Byte.toUnsignedInt:(B)I
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setTimeToLive:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 2 1 ttl B
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
ttl
public void setTimeToLive(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.sendLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
1: aload 0
getstatic java.net.StandardSocketOptions.IP_MULTICAST_TTL:Ljava/net/SocketOption;
iload 1
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setIntOption:(Ljava/net/SocketOption;I)V
2: goto 6
StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 2
4: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.sendLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
5: aload 2
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.sendLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 8 1 ttl I
Exception table:
from to target type
1 3 3 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
ttl
public byte getTTL();
descriptor: ()B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.getTimeToLive:()I
i2b
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public int getTimeToLive();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.sendLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
1: aload 0
getstatic java.net.StandardSocketOptions.IP_MULTICAST_TTL:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.DatagramSocketAdaptor.getIntOption:(Ljava/net/SocketOption;)I
istore 2
2: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.sendLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
3: iload 2
ireturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
5: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.sendLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
6: aload 1
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/DatagramSocketAdaptor;
Exception table:
from to target type
1 2 4 any
Exceptions:
throws java.io.IOException
public void joinGroup(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
new java.net.InetSocketAddress
dup
aload 1
iconst_0
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
aconst_null
invokevirtual sun.nio.ch.DatagramSocketAdaptor.joinGroup:(Ljava/net/SocketAddress;Ljava/net/NetworkInterface;)V
2: goto 5
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
3: astore 2
start local 2 4: new java.net.SocketException
dup
ldc "joinGroup failed"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.net.SocketException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
checkcast java.net.SocketException
athrow
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 6 1 group Ljava/net/InetAddress;
4 5 2 iae Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
1 2 3 Class java.lang.IllegalArgumentException
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
group
public void leaveGroup(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
new java.net.InetSocketAddress
dup
aload 1
iconst_0
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
aconst_null
invokevirtual sun.nio.ch.DatagramSocketAdaptor.leaveGroup:(Ljava/net/SocketAddress;Ljava/net/NetworkInterface;)V
2: goto 5
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
3: astore 2
start local 2 4: new java.net.SocketException
dup
ldc "leaveGroup failed"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.net.SocketException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
checkcast java.net.SocketException
athrow
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 6 1 group Ljava/net/InetAddress;
4 5 2 iae Ljava/lang/IllegalArgumentException;
Exception table:
from to target type
1 2 3 Class java.lang.IllegalArgumentException
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
group
private static java.net.InetAddress checkGroup(java.net.SocketAddress);
descriptor: (Ljava/net/SocketAddress;)Ljava/net/InetAddress;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
instanceof java.net.InetSocketAddress
ifne 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Unsupported address type"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
checkcast java.net.InetSocketAddress
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
astore 1
start local 1 3: aload 1
ifnonnull 5
4: new java.lang.IllegalArgumentException
dup
ldc "Unresolved address"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.net.InetAddress
StackMap stack:
aload 1
invokevirtual java.net.InetAddress.isMulticastAddress:()Z
ifne 7
6: new java.net.SocketException
dup
ldc "Not a multicast address"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 mcastaddr Ljava/net/SocketAddress;
3 8 1 group Ljava/net/InetAddress;
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
mcastaddr
public void joinGroup(java.net.SocketAddress, java.net.NetworkInterface);
descriptor: (Ljava/net/SocketAddress;Ljava/net/NetworkInterface;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic sun.nio.ch.DatagramSocketAdaptor.checkGroup:(Ljava/net/SocketAddress;)Ljava/net/InetAddress;
astore 3
start local 3 1: aload 2
ifnull 2
aload 2
goto 3
StackMap locals: java.net.InetAddress
StackMap stack:
2: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.defaultNetworkInterface:()Ljava/net/NetworkInterface;
StackMap locals:
StackMap stack: java.net.NetworkInterface
3: astore 4
start local 4 4: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.isClosed:()Z
ifeq 6
5: new java.net.SocketException
dup
ldc "Socket is closed"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: java.net.NetworkInterface
StackMap stack:
aload 0
dup
astore 5
monitorenter
7: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 3
aload 4
invokevirtual sun.nio.ch.DatagramChannelImpl.findMembership:(Ljava/net/InetAddress;Ljava/net/NetworkInterface;)Ljava/nio/channels/MembershipKey;
astore 6
start local 6 8: aload 6
ifnull 13
9: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 7
start local 7 10: aload 7
ifnull 12
11: aload 7
aload 3
invokevirtual java.lang.SecurityManager.checkMulticast:(Ljava/net/InetAddress;)V
12: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.nio.channels.MembershipKey java.lang.SecurityManager
StackMap stack:
new java.net.SocketException
dup
ldc "Already a member of group"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
end local 7 13: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 3
aload 4
invokevirtual sun.nio.ch.DatagramChannelImpl.join:(Ljava/net/InetAddress;Ljava/net/NetworkInterface;)Ljava/nio/channels/MembershipKey;
pop
end local 6 14: aload 5
monitorexit
15: goto 18
StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.SocketAddress java.net.NetworkInterface java.net.InetAddress java.net.NetworkInterface sun.nio.ch.DatagramSocketAdaptor
StackMap stack: java.lang.Throwable
16: aload 5
monitorexit
17: athrow
18: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 19 1 mcastaddr Ljava/net/SocketAddress;
0 19 2 netIf Ljava/net/NetworkInterface;
1 19 3 group Ljava/net/InetAddress;
4 19 4 ni Ljava/net/NetworkInterface;
8 14 6 key Ljava/nio/channels/MembershipKey;
10 13 7 sm Ljava/lang/SecurityManager;
Exception table:
from to target type
7 15 16 any
16 17 16 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
mcastaddr
netIf
public void leaveGroup(java.net.SocketAddress, java.net.NetworkInterface);
descriptor: (Ljava/net/SocketAddress;Ljava/net/NetworkInterface;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic sun.nio.ch.DatagramSocketAdaptor.checkGroup:(Ljava/net/SocketAddress;)Ljava/net/InetAddress;
astore 3
start local 3 1: aload 2
ifnull 2
aload 2
goto 3
StackMap locals: java.net.InetAddress
StackMap stack:
2: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.defaultNetworkInterface:()Ljava/net/NetworkInterface;
StackMap locals:
StackMap stack: java.net.NetworkInterface
3: astore 4
start local 4 4: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.isClosed:()Z
ifeq 6
5: new java.net.SocketException
dup
ldc "Socket is closed"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: java.net.NetworkInterface
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 5
start local 5 7: aload 5
ifnull 9
8: aload 5
aload 3
invokevirtual java.lang.SecurityManager.checkMulticast:(Ljava/net/InetAddress;)V
9: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
dup
astore 6
monitorenter
10: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.dc:Lsun/nio/ch/DatagramChannelImpl;
aload 3
aload 4
invokevirtual sun.nio.ch.DatagramChannelImpl.findMembership:(Ljava/net/InetAddress;Ljava/net/NetworkInterface;)Ljava/nio/channels/MembershipKey;
astore 7
start local 7 11: aload 7
ifnonnull 13
12: new java.net.SocketException
dup
ldc "Not a member of group"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.nio.channels.MembershipKey
StackMap stack:
aload 7
invokevirtual java.nio.channels.MembershipKey.drop:()V
end local 7 14: aload 6
monitorexit
15: goto 18
StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.SocketAddress java.net.NetworkInterface java.net.InetAddress java.net.NetworkInterface java.lang.SecurityManager sun.nio.ch.DatagramSocketAdaptor
StackMap stack: java.lang.Throwable
16: aload 6
monitorexit
17: athrow
18: StackMap locals:
StackMap stack:
return
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 19 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 19 1 mcastaddr Ljava/net/SocketAddress;
0 19 2 netIf Ljava/net/NetworkInterface;
1 19 3 group Ljava/net/InetAddress;
4 19 4 ni Ljava/net/NetworkInterface;
7 19 5 sm Ljava/lang/SecurityManager;
11 14 7 key Ljava/nio/channels/MembershipKey;
Exception table:
from to target type
10 15 16 any
16 17 16 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
mcastaddr
netIf
public void setInterface(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.net.SocketException
dup
ldc "Invalid value 'null'"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokestatic java.net.NetworkInterface.getByInetAddress:(Ljava/net/InetAddress;)Ljava/net/NetworkInterface;
astore 2
start local 2 3: aload 2
ifnonnull 6
4: aload 1
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
astore 3
start local 3 5: new java.net.SocketException
dup
new java.lang.StringBuilder
dup
ldc "No network interface with address "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
end local 3 6: StackMap locals: java.net.NetworkInterface
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.outgoingInterfaceLock:Ljava/lang/Object;
dup
astore 3
monitorenter
7: aload 0
aload 2
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setNetworkInterface:(Ljava/net/NetworkInterface;)V
8: aload 0
aload 2
putfield sun.nio.ch.DatagramSocketAdaptor.outgoingNetworkInterface:Ljava/net/NetworkInterface;
9: aload 0
aload 1
putfield sun.nio.ch.DatagramSocketAdaptor.outgoingInetAddress:Ljava/net/InetAddress;
10: aload 3
monitorexit
11: goto 14
StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.InetAddress java.net.NetworkInterface java.lang.Object
StackMap stack: java.lang.Throwable
12: aload 3
monitorexit
13: athrow
14: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 15 1 inf Ljava/net/InetAddress;
3 15 2 ni Ljava/net/NetworkInterface;
5 6 3 address Ljava/lang/String;
Exception table:
from to target type
7 11 12 any
12 13 12 any
Exceptions:
throws java.net.SocketException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
inf
public java.net.InetAddress getInterface();
descriptor: ()Ljava/net/InetAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.outgoingInterfaceLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.outgoingNetworkInterface:()Ljava/net/NetworkInterface;
astore 2
start local 2 2: aload 2
ifnull 14
3: aload 2
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.outgoingNetworkInterface:Ljava/net/NetworkInterface;
invokevirtual java.net.NetworkInterface.equals:(Ljava/lang/Object;)Z
ifeq 6
4: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.outgoingInetAddress:Ljava/net/InetAddress;
aload 1
monitorexit
5: areturn
6: StackMap locals: java.lang.Object java.net.NetworkInterface
StackMap stack:
aload 2
invokedynamic run(Ljava/net/NetworkInterface;)Ljava/security/PrivilegedAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
sun/nio/ch/DatagramSocketAdaptor.lambda$0(Ljava/net/NetworkInterface;)Ljava/net/InetAddress; (6)
()Ljava/net/InetAddress;
astore 3
start local 3 7: aload 3
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.net.InetAddress
astore 4
start local 4 8: aload 4
ifnonnull 10
9: new java.net.SocketException
dup
ldc "Network interface has no IP address"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals: java.security.PrivilegedAction java.net.InetAddress
StackMap stack:
aload 0
aload 2
putfield sun.nio.ch.DatagramSocketAdaptor.outgoingNetworkInterface:Ljava/net/NetworkInterface;
11: aload 0
aload 4
putfield sun.nio.ch.DatagramSocketAdaptor.outgoingInetAddress:Ljava/net/InetAddress;
12: aload 4
aload 1
monitorexit
13: areturn
end local 4 end local 3 end local 2 14: StackMap locals:
StackMap stack:
aload 1
monitorexit
15: goto 18
StackMap locals:
StackMap stack: java.lang.Throwable
16: aload 1
monitorexit
17: athrow
18: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.anyInetAddress:()Ljava/net/InetAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lsun/nio/ch/DatagramSocketAdaptor;
2 14 2 ni Ljava/net/NetworkInterface;
7 14 3 pa Ljava/security/PrivilegedAction<Ljava/net/InetAddress;>;
8 14 4 ia Ljava/net/InetAddress;
Exception table:
from to target type
1 5 16 any
6 13 16 any
14 15 16 any
16 17 16 any
Exceptions:
throws java.net.SocketException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public void setNetworkInterface(java.net.NetworkInterface);
descriptor: (Ljava/net/NetworkInterface;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getstatic java.net.StandardSocketOptions.IP_MULTICAST_IF:Ljava/net/SocketOption;
aload 1
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/net/DatagramSocket;
pop
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 2
start local 2 3: aload 2
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
end local 2 4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 5 1 netIf Ljava/net/NetworkInterface;
3 4 2 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.net.SocketException
MethodParameters:
Name Flags
netIf
public java.net.NetworkInterface getNetworkInterface();
descriptor: ()Ljava/net/NetworkInterface;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.outgoingNetworkInterface:()Ljava/net/NetworkInterface;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.anyNetworkInterface:()Ljava/net/NetworkInterface;
astore 1
3: StackMap locals: java.net.NetworkInterface
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/DatagramSocketAdaptor;
1 4 1 ni Ljava/net/NetworkInterface;
Exceptions:
throws java.net.SocketException
public void setLoopbackMode(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 1
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: istore 2
start local 2 3: aload 0
getstatic java.net.StandardSocketOptions.IP_MULTICAST_LOOP:Ljava/net/SocketOption;
iload 2
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setBooleanOption:(Ljava/net/SocketOption;Z)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 5 1 disable Z
3 5 2 enable Z
Exceptions:
throws java.net.SocketException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
disable
public boolean getLoopbackMode();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getstatic java.net.StandardSocketOptions.IP_MULTICAST_LOOP:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.DatagramSocketAdaptor.getBooleanOption:(Ljava/net/SocketOption;)Z
istore 1
start local 1 1: iload 1
ifeq 2
iconst_0
goto 3
StackMap locals: int
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/DatagramSocketAdaptor;
1 4 1 enabled Z
Exceptions:
throws java.net.SocketException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public void send(java.net.DatagramPacket, byte);
descriptor: (Ljava/net/DatagramPacket;B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.sendLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
1: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.getTimeToLive:()I
istore 3
start local 3 2: aload 0
iload 2
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setTTL:(B)V
3: aload 0
aload 1
invokevirtual sun.nio.ch.DatagramSocketAdaptor.send:(Ljava/net/DatagramPacket;)V
4: goto 8
StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.DatagramPacket int int
StackMap stack: java.lang.Throwable
5: astore 4
6: aload 0
iload 3
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setTimeToLive:(I)V
7: aload 4
athrow
8: StackMap locals:
StackMap stack:
aload 0
iload 3
invokevirtual sun.nio.ch.DatagramSocketAdaptor.setTimeToLive:(I)V
end local 3 9: goto 13
StackMap locals: sun.nio.ch.DatagramSocketAdaptor java.net.DatagramPacket int
StackMap stack: java.lang.Throwable
10: astore 5
11: aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.sendLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
12: aload 5
athrow
13: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.DatagramSocketAdaptor.sendLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
14: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/nio/ch/DatagramSocketAdaptor;
0 15 1 p Ljava/net/DatagramPacket;
0 15 2 ttl B
2 9 3 oldValue I
Exception table:
from to target type
2 5 5 any
1 10 10 any
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
p
ttl
private java.net.NetworkInterface outgoingNetworkInterface();
descriptor: ()Ljava/net/NetworkInterface;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getstatic java.net.StandardSocketOptions.IP_MULTICAST_IF:Ljava/net/SocketOption;
invokevirtual sun.nio.ch.DatagramSocketAdaptor.getOption:(Ljava/net/SocketOption;)Ljava/lang/Object;
checkcast java.net.NetworkInterface
1: areturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 3: aload 1
invokestatic sun.nio.ch.Net.translateToSocketException:(Ljava/lang/Exception;)V
4: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/DatagramSocketAdaptor;
3 5 1 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.net.SocketException
private java.net.NetworkInterface defaultNetworkInterface();
descriptor: ()Ljava/net/NetworkInterface;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.outgoingNetworkInterface:()Ljava/net/NetworkInterface;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: invokestatic sun.nio.ch.DatagramSocketAdaptor$NetworkInterfaces.getDefault:()Ljava/net/NetworkInterface;
astore 1
3: StackMap locals: java.net.NetworkInterface
StackMap stack:
aload 1
ifnonnull 5
4: aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.anyNetworkInterface:()Ljava/net/NetworkInterface;
astore 1
5: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/DatagramSocketAdaptor;
1 6 1 ni Ljava/net/NetworkInterface;
Exceptions:
throws java.net.SocketException
private java.net.NetworkInterface anyNetworkInterface();
descriptor: ()Ljava/net/NetworkInterface;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: iconst_1
anewarray java.net.InetAddress
astore 1
start local 1 1: aload 1
iconst_0
aload 0
invokevirtual sun.nio.ch.DatagramSocketAdaptor.anyInetAddress:()Ljava/net/InetAddress;
aastore
2: aload 1
iconst_0
aaload
invokevirtual java.net.InetAddress.getHostName:()Ljava/lang/String;
iconst_0
aload 1
invokestatic sun.nio.ch.DatagramSocketAdaptor$NetworkInterfaces.newNetworkInterface:(Ljava/lang/String;I[Ljava/net/InetAddress;)Ljava/net/NetworkInterface;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/DatagramSocketAdaptor;
1 3 1 addrs [Ljava/net/InetAddress;
private java.net.InetAddress anyInetAddress();
descriptor: ()Ljava/net/InetAddress;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.net.InetSocketAddress
dup
iconst_0
invokespecial java.net.InetSocketAddress.<init>:(I)V
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/DatagramSocketAdaptor;
private static java.net.InetAddress lambda$0(java.net.NetworkInterface);
descriptor: (Ljava/net/NetworkInterface;)Ljava/net/InetAddress;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
0: aload 0
invokevirtual java.net.NetworkInterface.inetAddresses:()Ljava/util/stream/Stream;
invokeinterface java.util.stream.Stream.findFirst:()Ljava/util/Optional;
aconst_null
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.InetAddress
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "DatagramSocketAdaptor.java"
NestMembers:
sun.nio.ch.DatagramSocketAdaptor$DatagramPackets sun.nio.ch.DatagramSocketAdaptor$DatagramSockets sun.nio.ch.DatagramSocketAdaptor$NetworkInterfaces
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private DatagramPackets = sun.nio.ch.DatagramSocketAdaptor$DatagramPackets of sun.nio.ch.DatagramSocketAdaptor
private DatagramSockets = sun.nio.ch.DatagramSocketAdaptor$DatagramSockets of sun.nio.ch.DatagramSocketAdaptor
private NetworkInterfaces = sun.nio.ch.DatagramSocketAdaptor$NetworkInterfaces of sun.nio.ch.DatagramSocketAdaptor