io.netty.channel.socket.oio.OioSocketChannel.class Maven / Gradle / Ivy
???? 2F ,io/netty/channel/socket/oio/OioSocketChannel )io/netty/channel/oio/OioByteStreamChannel %io/netty/channel/socket/SocketChannel OioSocketChannel.java .io/netty/channel/socket/oio/OioSocketChannel$3 .io/netty/channel/socket/oio/OioSocketChannel$2
.io/netty/channel/socket/oio/OioSocketChannel$1 logger /Lio/netty/util/internal/logging/InternalLogger; socket Ljava/net/Socket; config 4Lio/netty/channel/socket/oio/OioSocketChannelConfig; ()V java/net/Socket
(Ljava/net/Socket;)V
this .Lio/netty/channel/socket/oio/OioSocketChannel; .(Lio/netty/channel/Channel;Ljava/net/Socket;)V
java/io/IOException " java/lang/Exception $ (Lio/netty/channel/Channel;)V &
' ) 9io/netty/channel/socket/oio/DefaultOioSocketChannelConfig + B(Lio/netty/channel/socket/oio/OioSocketChannel;Ljava/net/Socket;)V -
, . 0 isConnected ()Z 2 3
4 getInputStream ()Ljava/io/InputStream; 6 7
8 getOutputStream ()Ljava/io/OutputStream; : ;
< activate .(Ljava/io/InputStream;Ljava/io/OutputStream;)V > ?
@ io/netty/channel/Channel B setSoTimeout (I)V D E
F close H
I K Failed to close a socket. M -io/netty/util/internal/logging/InternalLogger O warn *(Ljava/lang/String;Ljava/lang/Throwable;)V Q R P S !io/netty/channel/ChannelException U failed to initialize a socket W R
V Y java/lang/Throwable [ e Ljava/io/IOException; Ljava/lang/Exception; parent Lio/netty/channel/Channel; success Z /()Lio/netty/channel/socket/ServerSocketChannel; ()Lio/netty/channel/Channel; ` e
f +io/netty/channel/socket/ServerSocketChannel h 6()Lio/netty/channel/socket/oio/OioSocketChannelConfig; isOpen isClosed l 3
m isActive isOutputShutdown p 3
q o 3
s isInputShutdown u 3
v
isShutdown shutdownOutput "()Lio/netty/channel/ChannelFuture;
newPromise #()Lio/netty/channel/ChannelPromise; { |
} C(Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; y
?
shutdownInput ?
? shutdown ?
? doReadBytes (Lio/netty/buffer/ByteBuf;)I java/net/SocketTimeoutException ? ? ?
? ignored !Ljava/net/SocketTimeoutException; buf Lio/netty/buffer/ByteBuf; eventLoop ()Lio/netty/channel/EventLoop; ? ?
? io/netty/channel/EventLoop ? inEventLoop ? 3 ? ? shutdownOutput0 $(Lio/netty/channel/ChannelPromise;)V ? ?
? R(Lio/netty/channel/socket/oio/OioSocketChannel;Lio/netty/channel/ChannelPromise;)V ?
? execute (Ljava/lang/Runnable;)V ? ? ? ? promise !Lio/netty/channel/ChannelPromise; loop Lio/netty/channel/EventLoop; y
? io/netty/channel/ChannelPromise ?
setSuccess ? | ? ?
setFailure 8(Ljava/lang/Throwable;)Lio/netty/channel/ChannelPromise; ? ? ? ? t Ljava/lang/Throwable; shutdownInput0 ? ?
?
? ?
? shutdown0 ? ?
?
? ;Exception suppressed because a previous exception occurred. ? debug ? R P ? cause localAddress ()Ljava/net/InetSocketAddress; ()Ljava/net/SocketAddress; ? ?
? java/net/InetSocketAddress ?
remoteAddress ? ?
?
localAddress0 getLocalSocketAddress ? ?
? remoteAddress0 getRemoteSocketAddress ? ?
? doBind (Ljava/net/SocketAddress;)V "io/netty/util/internal/SocketUtils ? bind ,(Ljava/net/Socket;Ljava/net/SocketAddress;)V ? ?
? ? Ljava/net/SocketAddress; doConnect 3(Ljava/net/SocketAddress;Ljava/net/SocketAddress;)V j
? 2io/netty/channel/socket/oio/OioSocketChannelConfig ? getConnectTimeoutMillis ()I ? ? ? ? connect -(Ljava/net/Socket;Ljava/net/SocketAddress;I)V ? ?
? ? doClose ?
? java/net/SocketAddress ? (io/netty/channel/ConnectTimeoutException ? java/lang/StringBuilder ?
? connection timed out: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ?
? toString ()Ljava/lang/String;
? (Ljava/lang/String;)V
?
getStackTrace ()[Ljava/lang/StackTraceElement;
?
setStackTrace !([Ljava/lang/StackTraceElement;)V
? *Lio/netty/channel/ConnectTimeoutException; doDisconnect checkInputShutdown
v getSoTimeout ? ? java/lang/Thread sleep (J)V
setReadPending (Z)V Ljava/lang/Deprecated;
" readPending clearReadPending0 clearReadPending&