META-INF.modules.java.base.classes.sun.nio.ch.ServerSocketAdaptor.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java.base Show documentation
Show all versions of java.base Show documentation
Bytecoder java.base Module
???? : run O(Lsun/nio/ch/ServerSocketChannelImpl;)Ljava/security/PrivilegedExceptionAction;
java/security/AccessController doPrivileged =(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object; java/net/ServerSocket 'java/security/PrivilegedActionException java/lang/InternalError Should not reach here
*(Ljava/lang/String;Ljava/lang/Throwable;)V
sun/nio/ch/DummySocketImpl create ()Ljava/net/SocketImpl;
(Ljava/net/SocketImpl;)V ! " # $ % sun/nio/ch/ServerSocketAdaptor ssc $Lsun/nio/ch/ServerSocketChannelImpl;
! ' ( ) bind (Ljava/net/SocketAddress;I)V + java/net/InetSocketAddress
* - . (I)V
0 1 2 ( 3 "sun/nio/ch/ServerSocketChannelImpl B(Ljava/net/SocketAddress;I)Ljava/nio/channels/ServerSocketChannel; 5 java/lang/Exception
7 8 9 : ; sun/nio/ch/Net translateException (Ljava/lang/Exception;)V
0 = > ? localAddress ()Ljava/net/InetSocketAddress;
7 A B C getRevealedLocalAddress :(Ljava/net/InetSocketAddress;)Ljava/net/InetSocketAddress;
* E F G
getAddress ()Ljava/net/InetAddress;
* I J K getPort ()I ! M N O timeout I Q R S T U java/util/concurrent/TimeUnit MILLISECONDS Ljava/util/concurrent/TimeUnit;
Q W X Y toNanos (J)J
0 [ \ ] blockingAccept $(J)Ljava/nio/channels/SocketChannel;
0 _ ` a accept #()Ljava/nio/channels/SocketChannel; c .java/nio/channels/IllegalBlockingModeException
b e f ()V
h i j k l java/nio/channels/SocketChannel socket ()Ljava/net/Socket;
0 n o f close
0 q r s isBound ()Z
0 u v s isOpen x java/net/SocketException z Socket is closed
w | } (Ljava/lang/String;)V "java/lang/IllegalArgumentException ? timeout < 0
~ | ? ? ? ? ? java/net/StandardSocketOptions SO_REUSEADDR Ljava/net/SocketOption;
? ? ? ? ? java/lang/Boolean valueOf (Z)Ljava/lang/Boolean;
0 ? ? ? setOption R(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/ServerSocketChannel; ? java/io/IOException
7 ? ? ; translateToSocketException
0 ? ? ? getOption +(Ljava/net/SocketOption;)Ljava/lang/Object;
? ? ? s booleanValue
! q ? ServerSocket[unbound] ? java/lang/StringBuilder
? e ? ServerSocket[addr=
? ? ? ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
! ? ? G getInetAddress
? ? ? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ,localport=
! ? ? K getLocalPort
? ? ? ? (I)Ljava/lang/StringBuilder; ? ]
? ? ? ? toString ()Ljava/lang/String; ? size cannot be 0 or negative ? ? ? ? SO_RCVBUF
? ? ? ? ? java/lang/Integer (I)Ljava/lang/Integer;
? ? ? K intValue
0 ? ? ? supportedOptions ()Ljava/util/Set;
! ? ? '(Lsun/nio/ch/ServerSocketChannelImpl;)V =(Lsun/nio/ch/ServerSocketChannelImpl;)Ljava/net/ServerSocket; Code LineNumberTable LocalVariableTable pae )Ljava/security/PrivilegedActionException; pa )Ljava/security/PrivilegedExceptionAction; LocalVariableTypeTable BLjava/security/PrivilegedExceptionAction;
StackMapTable ? 'java/security/PrivilegedExceptionAction this Lsun/nio/ch/ServerSocketAdaptor; (Ljava/net/SocketAddress;)V local Ljava/net/SocketAddress;
Exceptions x Ljava/lang/Exception; backlog Ljava/net/InetSocketAddress; nanos J e sc !Ljava/nio/channels/SocketChannel;
getChannel )()Ljava/nio/channels/ServerSocketChannel; isClosed setSoTimeout getSoTimeout setReuseAddress (Z)V Ljava/io/IOException; on Z getReuseAddress setReceiveBufferSize size getReceiveBufferSize B(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/net/ServerSocket; name value Ljava/lang/Object; Ljava/net/SocketOption; TT; Signature N(Ljava/net/SocketOption;TT;)Ljava/net/ServerSocket; 7(Ljava/net/SocketOption;)TT; -()Ljava/util/Set;>; lambda$create$0
SourceFile ServerSocketAdaptor.java BootstrapMethods
"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; ()Ljava/lang/Object;
! ? ()Ljava/net/ServerSocket; InnerClasses %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup ! $ % B N O ? ? ? *? L+? ? ?M? Y,? ?
? A C D E ? ? ? $ % ? ? ? ? ? ? ? 0 ?
? ? I
*? ? *+? ? ? J K L ?
? ?
$ % ( ? ? @ *+2? &? ?
P Q ? ? ? ? ? ? ? ( ) ? ? +? ? *Y? ,L*? +? /W? N-? 6?
4 ? U V
X [ Y Z \ ? * ? ? ? ? ? ? ? O ?
L 4 ? ? ? G ? d *? ?