public final class sun.management.jdp.JdpBroadcaster
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.management.jdp.JdpBroadcaster
super_class: java.lang.Object
{
private final java.net.InetAddress addr;
descriptor: Ljava/net/InetAddress;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int port;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.channels.DatagramChannel channel;
descriptor: Ljava/nio/channels/DatagramChannel;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.net.InetAddress, java.net.InetAddress, int, int);
descriptor: (Ljava/net/InetAddress;Ljava/net/InetAddress;II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield sun.management.jdp.JdpBroadcaster.addr:Ljava/net/InetAddress;
2: aload 0
iload 3
putfield sun.management.jdp.JdpBroadcaster.port:I
3: aload 1
instanceof java.net.Inet6Address
ifeq 5
4: getstatic java.net.StandardProtocolFamily.INET6:Ljava/net/StandardProtocolFamily;
goto 6
StackMap locals: sun.management.jdp.JdpBroadcaster java.net.InetAddress java.net.InetAddress int int
StackMap stack:
5: getstatic java.net.StandardProtocolFamily.INET:Ljava/net/StandardProtocolFamily;
6: StackMap locals:
StackMap stack: java.net.StandardProtocolFamily
astore 5
start local 5 7: aload 0
aload 5
invokestatic java.nio.channels.DatagramChannel.open:(Ljava/net/ProtocolFamily;)Ljava/nio/channels/DatagramChannel;
putfield sun.management.jdp.JdpBroadcaster.channel:Ljava/nio/channels/DatagramChannel;
8: aload 0
getfield sun.management.jdp.JdpBroadcaster.channel:Ljava/nio/channels/DatagramChannel;
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual java.nio.channels.DatagramChannel.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/DatagramChannel;
pop
9: aload 0
getfield sun.management.jdp.JdpBroadcaster.channel:Ljava/nio/channels/DatagramChannel;
getstatic java.net.StandardSocketOptions.IP_MULTICAST_TTL:Ljava/net/SocketOption;
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.nio.channels.DatagramChannel.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/DatagramChannel;
pop
10: aload 2
ifnull 17
11: aload 2
invokestatic java.net.NetworkInterface.getByInetAddress:(Ljava/net/InetAddress;)Ljava/net/NetworkInterface;
astore 6
start local 6 12: aload 0
getfield sun.management.jdp.JdpBroadcaster.channel:Ljava/nio/channels/DatagramChannel;
new java.net.InetSocketAddress
dup
aload 2
iconst_0
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
invokevirtual java.nio.channels.DatagramChannel.bind:(Ljava/net/SocketAddress;)Ljava/nio/channels/DatagramChannel;
pop
13: goto 16
StackMap locals: sun.management.jdp.JdpBroadcaster java.net.InetAddress java.net.InetAddress int int java.net.ProtocolFamily java.net.NetworkInterface
StackMap stack: java.nio.channels.UnsupportedAddressTypeException
14: pop
15: new sun.management.jdp.JdpException
dup
ldc "Unable to bind to source address"
invokespecial sun.management.jdp.JdpException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
aload 0
getfield sun.management.jdp.JdpBroadcaster.channel:Ljava/nio/channels/DatagramChannel;
getstatic java.net.StandardSocketOptions.IP_MULTICAST_IF:Ljava/net/SocketOption;
aload 6
invokevirtual java.nio.channels.DatagramChannel.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/DatagramChannel;
pop
end local 6 17: 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 18 0 this Lsun/management/jdp/JdpBroadcaster;
0 18 1 address Ljava/net/InetAddress;
0 18 2 srcAddress Ljava/net/InetAddress;
0 18 3 port I
0 18 4 ttl I
7 18 5 family Ljava/net/ProtocolFamily;
12 17 6 interf Ljava/net/NetworkInterface;
Exception table:
from to target type
12 13 14 Class java.nio.channels.UnsupportedAddressTypeException
Exceptions:
throws java.io.IOException, sun.management.jdp.JdpException
MethodParameters:
Name Flags
address
srcAddress
port
ttl
public void <init>(java.net.InetAddress, int, int);
descriptor: (Ljava/net/InetAddress;II)V
flags: (0x0001) ACC_PUBLIC
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
aconst_null
iload 2
iload 3
invokespecial sun.management.jdp.JdpBroadcaster.<init>:(Ljava/net/InetAddress;Ljava/net/InetAddress;II)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/management/jdp/JdpBroadcaster;
0 2 1 address Ljava/net/InetAddress;
0 2 2 port I
0 2 3 ttl I
Exceptions:
throws java.io.IOException, sun.management.jdp.JdpException
MethodParameters:
Name Flags
address
port
ttl
public void sendPacket(sun.management.jdp.JdpPacket);
descriptor: (Lsun/management/jdp/JdpPacket;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface sun.management.jdp.JdpPacket.getPacketData:()[B
astore 2
start local 2 1: aload 2
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
astore 3
start local 3 2: aload 0
getfield sun.management.jdp.JdpBroadcaster.channel:Ljava/nio/channels/DatagramChannel;
aload 3
new java.net.InetSocketAddress
dup
aload 0
getfield sun.management.jdp.JdpBroadcaster.addr:Ljava/net/InetAddress;
aload 0
getfield sun.management.jdp.JdpBroadcaster.port:I
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
invokevirtual java.nio.channels.DatagramChannel.send:(Ljava/nio/ByteBuffer;Ljava/net/SocketAddress;)I
pop
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/management/jdp/JdpBroadcaster;
0 4 1 packet Lsun/management/jdp/JdpPacket;
1 4 2 data [B
2 4 3 b Ljava/nio/ByteBuffer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
packet
public void shutdown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.management.jdp.JdpBroadcaster.channel:Ljava/nio/channels/DatagramChannel;
invokevirtual java.nio.channels.DatagramChannel.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/management/jdp/JdpBroadcaster;
Exceptions:
throws java.io.IOException
}
SourceFile: "JdpBroadcaster.java"