io.netty.channel.socket.nio.NioSocketChannel.class Maven / Gradle / Ivy
???? 2? ,io/netty/channel/socket/nio/NioSocketChannel +io/netty/channel/nio/AbstractNioByteChannel %io/netty/channel/socket/SocketChannel NioSocketChannel.java Cio/netty/channel/socket/nio/NioSocketChannel$NioSocketChannelConfig NioSocketChannelConfig Cio/netty/channel/socket/nio/NioSocketChannel$NioSocketChannelUnsafe NioSocketChannelUnsafe .io/netty/channel/socket/nio/NioSocketChannel$6 .io/netty/channel/socket/nio/NioSocketChannel$5 .io/netty/channel/socket/nio/NioSocketChannel$4 .io/netty/channel/socket/nio/NioSocketChannel$3 .io/netty/channel/socket/nio/NioSocketChannel$2 .io/netty/channel/socket/nio/NioSocketChannel$1 ,io/netty/channel/RecvByteBufAllocator$Handle %io/netty/channel/RecvByteBufAllocator Handle 9io/netty/channel/nio/AbstractNioChannel$AbstractNioUnsafe 'io/netty/channel/nio/AbstractNioChannel ! AbstractNioUnsafe /io/netty/channel/AbstractChannel$AbstractUnsafe $ io/netty/channel/AbstractChannel & AbstractUnsafe 1io/netty/channel/nio/AbstractNioChannel$NioUnsafe ) NioUnsafe logger /Lio/netty/util/internal/logging/InternalLogger; DEFAULT_SELECTOR_PROVIDER (Ljava/nio/channels/spi/SelectorProvider; config -Lio/netty/channel/socket/SocketChannelConfig; newSocket K(Ljava/nio/channels/spi/SelectorProvider;)Ljava/nio/channels/SocketChannel; java/io/IOException 4 &java/nio/channels/spi/SelectorProvider 6 openSocketChannel #()Ljava/nio/channels/SocketChannel; 8 9
7 : !io/netty/channel/ChannelException < Failed to open a socket. > *(Ljava/lang/String;Ljava/lang/Throwable;)V @ A
= B e Ljava/io/IOException; provider ()V . / H +(Ljava/nio/channels/spi/SelectorProvider;)V @ J
K this .Lio/netty/channel/socket/nio/NioSocketChannel; 2 3
O $(Ljava/nio/channels/SocketChannel;)V @ Q
R >(Lio/netty/channel/Channel;Ljava/nio/channels/SocketChannel;)V @ T
U socket !Ljava/nio/channels/SocketChannel; B(Lio/netty/channel/Channel;Ljava/nio/channels/SelectableChannel;)V @ Y
Z java/nio/channels/SocketChannel \ ()Ljava/net/Socket; W ^
] _ ?(Lio/netty/channel/socket/nio/NioSocketChannel;Lio/netty/channel/socket/nio/NioSocketChannel;Ljava/net/Socket;Lio/netty/channel/socket/nio/NioSocketChannel$1;)V @ a
b 0 1 d parent Lio/netty/channel/Channel; /()Lio/netty/channel/socket/ServerSocketChannel; ()Lio/netty/channel/Channel; f i
j +io/netty/channel/socket/ServerSocketChannel l /()Lio/netty/channel/socket/SocketChannelConfig; javaChannel '()Ljava/nio/channels/SelectableChannel; o p
q isActive ()Z o 9
u isOpen w t
] x isConnected z t
] { ch isOutputShutdown java/net/Socket ~ t
? ? s t
? isInputShutdown ? t
? ?
isShutdown Ljava/net/Socket; localAddress ()Ljava/net/InetSocketAddress; ()Ljava/net/SocketAddress; ? ?
? java/net/InetSocketAddress ?
remoteAddress ? ?
? shutdownOutput "()Lio/netty/channel/ChannelFuture;
newPromise #()Lio/netty/channel/ChannelPromise; ? ?
? C(Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; ? ?
? unsafe 5()Lio/netty/channel/nio/AbstractNioChannel$NioUnsafe; ? ?
? prepareToClose !()Ljava/util/concurrent/Executor; ? ?
? R(Lio/netty/channel/socket/nio/NioSocketChannel;Lio/netty/channel/ChannelPromise;)V @ ?
? java/util/concurrent/Executor ? execute (Ljava/lang/Runnable;)V ? ? ? ? eventLoop %()Lio/netty/channel/nio/NioEventLoop; ? ?
? io/netty/channel/EventLoop ? inEventLoop ? t ? ? shutdownOutput0 $(Lio/netty/channel/ChannelPromise;)V ? ?
?
? ? ? loop Lio/netty/channel/EventLoop; promise !Lio/netty/channel/ChannelPromise;
closeExecutor Ljava/util/concurrent/Executor;
shutdownInput ? ?
? isInputShutdown0
?
? shutdownInput0 ? ?
?
? shutdown ? ?
?
? shutdown0 ? ?
?
? java/lang/Throwable ? ? G
? io/netty/channel/ChannelPromise ?
setSuccess ? ? ? ?
setFailure 8(Ljava/lang/Throwable;)Lio/netty/channel/ChannelPromise; ? ? ? ? t Ljava/lang/Throwable; java/lang/Exception ? (io/netty/util/internal/PlatformDependent ? javaVersion ()I ? ?
? ? ? 9
] ? ? G
? ? ? G
? ? 9
] ? ? G
? ? , - ? ;Exception suppressed because a previous exception occurred. ? -io/netty/util/internal/logging/InternalLogger ? debug ? A ? ? cause
localAddress0 getLocalSocketAddress ?
? remoteAddress0 getRemoteSocketAddress ?
? doBind (Ljava/net/SocketAddress;)V doBind0
Ljava/net/SocketAddress; "io/netty/util/internal/SocketUtils bind <(Ljava/nio/channels/SocketChannel;Ljava/net/SocketAddress;)V
,(Ljava/net/Socket;Ljava/net/SocketAddress;)V
doConnect 3(Ljava/net/SocketAddress;Ljava/net/SocketAddress;)Z connect <(Ljava/nio/channels/SocketChannel;Ljava/net/SocketAddress;)Z
selectionKey "()Ljava/nio/channels/SelectionKey;
java/nio/channels/SelectionKey! interestOps #(I)Ljava/nio/channels/SelectionKey;#$
"% doClose' G
( java/net/SocketAddress* connected Z success doFinishConnect
finishConnect0 t
]1 java/lang/Error3 @ G
45 doDisconnect
( close9 G
]: doReadBytes (Lio/netty/buffer/ByteBuf;)I recvBufAllocHandle 0()Lio/netty/channel/RecvByteBufAllocator$Handle;>? *@ io/netty/buffer/ByteBufB
writableBytesD ?
CE attemptedBytesRead (I)VGH IG ? K
writeBytes -(Ljava/nio/channels/ScatteringByteChannel;I)IMN
CO byteBuf Lio/netty/buffer/ByteBuf; allocHandle .Lio/netty/channel/RecvByteBufAllocator$Handle; doWriteBytes
readableBytesV ?
CW readBytes ,(Ljava/nio/channels/GatheringByteChannel;I)IYZ
C[ buf expectedWrittenBytes I doWriteFileRegion (Lio/netty/channel/FileRegion;)J io/netty/channel/FileRegionb transferred ()Jdecf
transferTo +(Ljava/nio/channels/WritableByteChannel;J)Jhicj region Lio/netty/channel/FileRegion; position J doWrite +(Lio/netty/channel/ChannelOutboundBuffer;)V &io/netty/channel/ChannelOutboundBufferr sizet ?
su clearOpWritew G
x
nioBuffers ()[Ljava/nio/ByteBuffer;z{
s| nioBufferCount~ ?
s
nioBufferSize?e
s? [Ljava/nio/ByteBuffer;?pq
? 0 n
? +io/netty/channel/socket/SocketChannelConfig? getWriteSpinCount? ??? java/nio/ByteBuffer? write (Ljava/nio/ByteBuffer;)I??
]? ([Ljava/nio/ByteBuffer;II)J??
]? removeBytes (J)V??
s? incompleteWrite (Z)V??
? localWrittenBytes i nioBuffer Ljava/nio/ByteBuffer; writtenBytes done
setOpWrite nioBufferCnt in (Lio/netty/channel/ChannelOutboundBuffer; newUnsafe =()Lio/netty/channel/nio/AbstractNioChannel$AbstractNioUnsafe; a(Lio/netty/channel/socket/nio/NioSocketChannel;Lio/netty/channel/socket/nio/NioSocketChannel$1;)V @?
? 3()Lio/netty/channel/AbstractChannel$AbstractUnsafe;??
? ? ?
? ? ?
? f h
? "()Lio/netty/channel/ChannelConfig;
access$100 x0 x1
access$200
access$300
access$500 1(Lio/netty/channel/socket/nio/NioSocketChannel;)V doDeregister? G
?
access$600 clearReadPending? G
? 4io/netty/util/internal/logging/InternalLoggerFactory? getInstance B(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;??
?? *()Ljava/nio/channels/spi/SelectorProvider; F?
7? Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses ! , - . / 0 1 3
2 3 ? a *? ;?L? =Y?+? C? 5 ? D E F / ? > ? @? E 5 @ G ? 6 *? I? L? ? M N ?
J K @ J ? A *+? P? S? ? M N F / ?
Q R @ Q ? ? *+? V? ? M N W X ?
X Y @ T ? _ *+,? [*? Y**,? `? c? e? ? M N f g W X ? b c d f h ? 2 *? k? m? ? M N ? h 0 n ? / *? e? ? M N ? m o 9 ? 2 *? r? ]? ? M N ? r s t ? a *? vL+? y? +? |? ? ? ? M N } X ?
w x?
? ]@ ~ t ? P *? v? `? ??
*? ?? ? ? ? M N ? }? @ ? t ? P *? v? `? ??
*? ?? ? ? ? M N ? ?? @ ? t ? m #*? v? `L+? ??
+? ??
*? ?? ? ? ? # M N W ? ?
? ?? ? ?@ ? ? ? 2 *? ?? ?? ? M N ? ? ? ? ? 2 *? ?? ?? ? M N ? ? ? ? ? 3 **? ?? ?? ? M N ? ? ? ? ? ? H*? ?? ? ?M,? ,? Y*+? ?? ? ? (*? ?N-? ? ? *+? ?? -? Y*+? ?? ? +? ? * &