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=3, 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:
aload 3
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
astore 3
18: aload 0
ldc Ljava/net/Socket;
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
19: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 3
20: aload 3
getstatic java.net.StandardSocketOptions.SO_RCVBUF:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
21: aload 3
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
22: iload 2
ifeq 24
23: aload 3
getstatic java.net.StandardSocketOptions.SO_REUSEPORT:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
24: StackMap locals:
StackMap stack:
getstatic jdk.net.Sockets$QuickAck.available:Z
ifeq 26
25: aload 3
getstatic jdk.net.ExtendedSocketOptions.TCP_QUICKACK:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
26: 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
27: aload 3
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
astore 3
28: aload 0
ldc Ljava/net/ServerSocket;
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
29: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 3
30: aload 3
getstatic java.net.StandardSocketOptions.SO_SNDBUF:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
31: aload 3
getstatic java.net.StandardSocketOptions.SO_RCVBUF:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
32: aload 3
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
33: iload 2
ifeq 35
34: aload 3
getstatic java.net.StandardSocketOptions.SO_REUSEPORT:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
35: 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
36: iload 1
ifeq 38
37: aload 3
getstatic jdk.net.ExtendedSocketOptions.SO_FLOW_SLA:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
38: StackMap locals:
StackMap stack:
aload 3
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
astore 3
39: aload 0
ldc Ljava/net/DatagramSocket;
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
40: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 3
41: aload 3
getstatic java.net.StandardSocketOptions.SO_SNDBUF:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
42: aload 3
getstatic java.net.StandardSocketOptions.SO_RCVBUF:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
43: aload 3
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
44: iload 2
ifeq 46
45: aload 3
getstatic java.net.StandardSocketOptions.SO_REUSEPORT:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
46: 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
47: aload 3
getstatic java.net.StandardSocketOptions.IP_MULTICAST_IF:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
48: aload 3
getstatic java.net.StandardSocketOptions.IP_MULTICAST_TTL:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
49: aload 3
getstatic java.net.StandardSocketOptions.IP_MULTICAST_LOOP:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
50: iload 1
ifeq 52
51: aload 3
getstatic jdk.net.ExtendedSocketOptions.SO_FLOW_SLA:Ljava/net/SocketOption;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
52: StackMap locals:
StackMap stack:
aload 3
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
astore 3
53: aload 0
ldc Ljava/net/MulticastSocket;
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
54: 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 55 0 options Ljava/util/Map<Ljava/lang/Class<*>;Ljava/util/Set<Ljava/net/SocketOption<*>;>;>;
2 55 1 flowsupported Z
3 55 2 reuseportsupported Z
4 55 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$QuickAck
InnerClasses:
PlatformSocketOptions = jdk.net.ExtendedSocketOptions$PlatformSocketOptions of jdk.net.ExtendedSocketOptions
QuickAck = jdk.net.Sockets$QuickAck of jdk.net.Sockets