public class jdk.net.Sockets
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.net.Sockets
super_class: java.lang.Object
{
private static final java.util.Map<java.lang.Class<?>, java.util.Set<java.net.SocketOption<?>>> options;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Class<*>;Ljava/util/Set<Ljava/net/SocketOption<*>;>;>;
private static volatile boolean checkedReusePort;
descriptor: Z
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
private static volatile boolean isReusePortAvailable;
descriptor: Z
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic jdk.net.Sockets.optionSets:()Ljava/util/Map;
putstatic jdk.net.Sockets.options:Ljava/util/Map;
1: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/net/Sockets;
public static <T> void setOption(java.net.Socket, java.net.SocketOption<T>, );
descriptor: (Ljava/net/Socket;Ljava/net/SocketOption;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual java.net.Socket.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/net/Socket;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 s Ljava/net/Socket;
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/Socket;Ljava/net/SocketOption<TT;>;TT;)V
MethodParameters:
Name Flags
s
name
value
public static <T> T getOption(java.net.Socket, java.net.SocketOption<T>);
descriptor: (Ljava/net/Socket;Ljava/net/SocketOption;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.net.Socket.getOption:(Ljava/net/SocketOption;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/net/Socket;
0 1 1 name Ljava/net/SocketOption<TT;>;
Exceptions:
throws java.io.IOException
Signature: <T:Ljava/lang/Object;>(Ljava/net/Socket;Ljava/net/SocketOption<TT;>;)TT;
MethodParameters:
Name Flags
s
name
public static <T> void setOption(java.net.ServerSocket, java.net.SocketOption<T>, );
descriptor: (Ljava/net/ServerSocket;Ljava/net/SocketOption;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual java.net.ServerSocket.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/net/ServerSocket;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 s Ljava/net/ServerSocket;
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/ServerSocket;Ljava/net/SocketOption<TT;>;TT;)V
MethodParameters:
Name Flags
s
name
value
public static <T> T getOption(java.net.ServerSocket, java.net.SocketOption<T>);
descriptor: (Ljava/net/ServerSocket;Ljava/net/SocketOption;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.net.ServerSocket.getOption:(Ljava/net/SocketOption;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/net/ServerSocket;
0 1 1 name Ljava/net/SocketOption<TT;>;
Exceptions:
throws java.io.IOException
Signature: <T:Ljava/lang/Object;>(Ljava/net/ServerSocket;Ljava/net/SocketOption<TT;>;)TT;
MethodParameters:
Name Flags
s
name
public static <T> void setOption(java.net.DatagramSocket, java.net.SocketOption<T>, );
descriptor: (Ljava/net/DatagramSocket;Ljava/net/SocketOption;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual java.net.DatagramSocket.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/net/DatagramSocket;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 s Ljava/net/DatagramSocket;
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/DatagramSocket;Ljava/net/SocketOption<TT;>;TT;)V
MethodParameters:
Name Flags
s
name
value
public static <T> T getOption(java.net.DatagramSocket, java.net.SocketOption<T>);
descriptor: (Ljava/net/DatagramSocket;Ljava/net/SocketOption;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.net.DatagramSocket.getOption:(Ljava/net/SocketOption;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/net/DatagramSocket;
0 1 1 name Ljava/net/SocketOption<TT;>;
Exceptions:
throws java.io.IOException
Signature: <T:Ljava/lang/Object;>(Ljava/net/DatagramSocket;Ljava/net/SocketOption<TT;>;)TT;
MethodParameters:
Name Flags
s
name
public static java.util.Set<java.net.SocketOption<?>> supportedOptions(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/util/Set;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic jdk.net.Sockets.options:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Set
astore 1
start local 1 1: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "unknown socket type"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.util.Set
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 socketType Ljava/lang/Class<*>;
1 4 1 set Ljava/util/Set<Ljava/net/SocketOption<*>;>;
Signature: (Ljava/lang/Class<*>;)Ljava/util/Set<Ljava/net/SocketOption<*>;>;
MethodParameters:
Name Flags
socketType
private static void checkValueType(, java.lang.Class<?>);
descriptor: (Ljava/lang/Object;Ljava/lang/Class;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 5
1: new java.lang.StringBuilder
dup
ldc "Found: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " Expected: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: aload 1
invokevirtual java.lang.Class.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 4: new java.lang.IllegalArgumentException
dup
aload 2
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
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 value Ljava/lang/Object;
0 6 1 type Ljava/lang/Class<*>;
4 5 2 s Ljava/lang/String;
Signature: (Ljava/lang/Object;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
value
type
static boolean isReusePortAvailable();
descriptor: ()Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: getstatic jdk.net.Sockets.checkedReusePort:Z
ifne 4
1: new java.net.Socket
dup
invokespecial java.net.Socket.<init>:()V
invokevirtual java.net.Socket.supportedOptions:()Ljava/util/Set;
astore 0
start local 0 2: aload 0
getstatic java.net.StandardSocketOptions.SO_REUSEPORT:Ljava/net/SocketOption;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
putstatic jdk.net.Sockets.isReusePortAvailable:Z
3: iconst_1
putstatic jdk.net.Sockets.checkedReusePort:Z
end local 0 4: StackMap locals:
StackMap stack:
getstatic jdk.net.Sockets.isReusePortAvailable:Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
2 4 0 s Ljava/util/Set<Ljava/net/SocketOption<*>;>;
private static java.util.Map<java.lang.Class<?>, java.util.Set<java.net.SocketOption<?>>> optionSets();
descriptor: ()Ljava/util/Map;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=0
0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 0
start local 0 1: invokestatic jdk.net.ExtendedSocketOptions$PlatformSocketOptions.get:()Ljdk/net/ExtendedSocketOptions$PlatformSocketOptions;
invokevirtual jdk.net.ExtendedSocketOptions$PlatformSocketOptions.flowSupported:()Z
istore 1
start local 1 2: invokestatic jdk.net.Sockets.isReusePortAvailable:()Z
istore 2
start local 2 3: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 3
start local 3 4: aload 3
getstatic java.net.StandardSocketOptions.SO_KEEPALIVE:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
5: aload 3
getstatic java.net.StandardSocketOptions.SO_SNDBUF:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
6: aload 3
getstatic java.net.StandardSocketOptions.SO_RCVBUF:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
7: aload 3
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
8: iload 2
ifeq 10
9: aload 3
getstatic java.net.StandardSocketOptions.SO_REUSEPORT:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
10: StackMap locals: java.util.Map int int java.util.Set
StackMap stack:
aload 3
getstatic java.net.StandardSocketOptions.SO_LINGER:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
11: aload 3
getstatic java.net.StandardSocketOptions.IP_TOS:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
12: aload 3
getstatic java.net.StandardSocketOptions.TCP_NODELAY:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
13: iload 1
ifeq 15
14: aload 3
getstatic jdk.net.ExtendedSocketOptions.SO_FLOW_SLA:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
15: StackMap locals:
StackMap stack:
getstatic jdk.net.Sockets$QuickAck.available:Z
ifeq 17
16: aload 3
getstatic jdk.net.ExtendedSocketOptions.TCP_QUICKACK:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
17: StackMap locals:
StackMap stack:
getstatic jdk.net.Sockets$KeepAliveOptions.AVAILABLE:Z
ifeq 22
18: aload 3
getstatic jdk.net.ExtendedSocketOptions.TCP_KEEPCOUNT:Ljava/net/SocketOption;
19: getstatic jdk.net.ExtendedSocketOptions.TCP_KEEPIDLE:Ljava/net/SocketOption;
20: getstatic jdk.net.ExtendedSocketOptions.TCP_KEEPINTERVAL:Ljava/net/SocketOption;
21: invokestatic java.util.Set.of:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Set;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
22: StackMap locals:
StackMap stack:
aload 3
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
astore 3
23: aload 0
ldc Ljava/net/Socket;
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
24: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 3
25: aload 3
getstatic java.net.StandardSocketOptions.SO_RCVBUF:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
26: aload 3
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
27: iload 2
ifeq 29
28: aload 3
getstatic java.net.StandardSocketOptions.SO_REUSEPORT:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
29: StackMap locals:
StackMap stack:
getstatic jdk.net.Sockets$QuickAck.available:Z
ifeq 31
30: aload 3
getstatic jdk.net.ExtendedSocketOptions.TCP_QUICKACK:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
31: StackMap locals:
StackMap stack:
getstatic jdk.net.Sockets$KeepAliveOptions.AVAILABLE:Z
ifeq 36
32: aload 3
getstatic jdk.net.ExtendedSocketOptions.TCP_KEEPCOUNT:Ljava/net/SocketOption;
33: getstatic jdk.net.ExtendedSocketOptions.TCP_KEEPIDLE:Ljava/net/SocketOption;
34: getstatic jdk.net.ExtendedSocketOptions.TCP_KEEPINTERVAL:Ljava/net/SocketOption;
35: invokestatic java.util.Set.of:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Set;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
36: StackMap locals:
StackMap stack:
aload 3
getstatic java.net.StandardSocketOptions.IP_TOS:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
37: aload 3
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
astore 3
38: aload 0
ldc Ljava/net/ServerSocket;
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
39: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 3
40: aload 3
getstatic java.net.StandardSocketOptions.SO_SNDBUF:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
41: aload 3
getstatic java.net.StandardSocketOptions.SO_RCVBUF:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
42: aload 3
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
43: iload 2
ifeq 45
44: aload 3
getstatic java.net.StandardSocketOptions.SO_REUSEPORT:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
45: StackMap locals:
StackMap stack:
aload 3
getstatic java.net.StandardSocketOptions.IP_TOS:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
46: iload 1
ifeq 48
47: aload 3
getstatic jdk.net.ExtendedSocketOptions.SO_FLOW_SLA:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
48: StackMap locals:
StackMap stack:
aload 3
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
astore 3
49: aload 0
ldc Ljava/net/DatagramSocket;
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
50: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 3
51: aload 3
getstatic java.net.StandardSocketOptions.SO_SNDBUF:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
52: aload 3
getstatic java.net.StandardSocketOptions.SO_RCVBUF:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
53: aload 3
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
54: iload 2
ifeq 56
55: aload 3
getstatic java.net.StandardSocketOptions.SO_REUSEPORT:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
56: StackMap locals:
StackMap stack:
aload 3
getstatic java.net.StandardSocketOptions.IP_TOS:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
57: aload 3
getstatic java.net.StandardSocketOptions.IP_MULTICAST_IF:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
58: aload 3
getstatic java.net.StandardSocketOptions.IP_MULTICAST_TTL:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
59: aload 3
getstatic java.net.StandardSocketOptions.IP_MULTICAST_LOOP:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
60: iload 1
ifeq 62
61: aload 3
getstatic jdk.net.ExtendedSocketOptions.SO_FLOW_SLA:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
62: StackMap locals:
StackMap stack:
aload 3
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
astore 3
63: aload 0
ldc Ljava/net/MulticastSocket;
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
64: aload 0
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 65 0 options Ljava/util/Map<Ljava/lang/Class<*>;Ljava/util/Set<Ljava/net/SocketOption<*>;>;>;
2 65 1 flowsupported Z
3 65 2 reuseportsupported Z
4 65 3 set Ljava/util/Set<Ljava/net/SocketOption<*>;>;
Signature: ()Ljava/util/Map<Ljava/lang/Class<*>;Ljava/util/Set<Ljava/net/SocketOption<*>;>;>;
}
SourceFile: "Sockets.java"
NestMembers:
jdk.net.Sockets$KeepAliveOptions jdk.net.Sockets$QuickAck
InnerClasses:
PlatformSocketOptions = jdk.net.ExtendedSocketOptions$PlatformSocketOptions of jdk.net.ExtendedSocketOptions
KeepAliveOptions = jdk.net.Sockets$KeepAliveOptions of jdk.net.Sockets
QuickAck = jdk.net.Sockets$QuickAck of jdk.net.Sockets