Deprecated
use NIO / EPOLL / KQUEUE transport.
SocketChannel which is using Old-Blocking-IO
| Modifier and Type | Field and Description |
|---|---|
| private final OioSocketChannelConfig | config
Deprecated
as a consequence of
OioSocketChannelConfig being deprecated.
|
| private static final InternalLogger | |
| private final Socket |
| Access | Constructor and Description |
|---|---|
| public | |
| public | OioSocketChannel(Socket
the socket)Socket which is used by this instanceCreate a new instance from the given |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| pack-priv final void | |
| public OioSocketChannelConfig | config()
Implements io.
Deprecated
as a consequence of
Returns the configuration of this channel.
OioSocketChannelConfig being deprecated.
|
| protected void | doBind(SocketAddress localAddress)
Implements abstract io. Channel to the SocketAddress
|
| protected void | |
| protected void | doConnect(SocketAddress remoteAddress, SocketAddress localAddress)
Implements abstract io. null otherwise.
|
| protected void | doDisconnect()
Implements abstract io. Channel from its remote peer
|
| protected int | doReadBytes(ByteBuf
the buf)ByteBuf into which the read bytes will be writtenOverrides io. |
| protected final void | doShutdownOutput()
Overrides io. |
| public boolean | isActive()
Overrides io. Implements io. true if the Channel is active and so connected.
|
| public boolean | isInputShutdown()
Implements abstract io. Implements io. true if and only if the remote peer shut down its output so that no more
data is received from this channel.
|
| public boolean | isOpen()
Implements io. true if the Channel is open and may get active later
|
| public boolean | |
| public boolean | isShutdown()
Implements io. |
| public InetSocketAddress | localAddress()
Overrides io. Implements io. |
| protected SocketAddress | localAddress0()
Implements abstract io. SocketAddress which is bound locally.
|
| public ServerSocketChannel | parent()
Overrides io. Implements io. |
| public InetSocketAddress | remoteAddress()
Overrides io. Implements io. |
| protected SocketAddress | remoteAddress0()
Implements abstract io. SocketAddress which the Channel is connected to.
|
| protected void | setReadPending(boolean readPending)
Overrides io.
Deprecated
|
| public ChannelFuture | shutdown()
Implements io. |
| public ChannelFuture | shutdown(final ChannelPromise
will be completed when both shutdown operations complete. promise)Implements io. |
| private static void | shutdownDone(ChannelFuture shutdownOutputFuture, ChannelFuture shutdownInputFuture, ChannelPromise promise)
|
| public ChannelFuture | shutdownInput()
Implements abstract io. Implements io. |
| public ChannelFuture | shutdownInput(final ChannelPromise promise)
Implements io. ChannelPromise.
|
| private void | |
| public ChannelFuture | |
| public ChannelFuture | shutdownOutput(final ChannelPromise promise)
Implements io. ChannelPromise.
|
| private void | |
| private void | |
| private void |
| config | back to summary |
|---|---|
| private final OioSocketChannelConfig config
Deprecated as a consequence of | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| socket | back to summary |
|---|---|
| private final Socket socket | |
| OioSocketChannel | back to summary |
|---|---|
| public OioSocketChannel() Create a new instance with an new | |
| OioSocketChannel | back to summary |
|---|---|
| public OioSocketChannel(Socket socket) Create a new instance from the given | |
| OioSocketChannel | back to summary |
|---|---|
| public OioSocketChannel(Channel parent, Socket socket) Create a new instance from the given | |
| checkInputShutdown | back to summary |
|---|---|
| protected boolean checkInputShutdown() | |
| clearReadPending0 | back to summary |
|---|---|
| pack-priv final void clearReadPending0() | |
| config | back to summary |
|---|---|
| public OioSocketChannelConfig config() Implements io. Doc from io. Deprecated as a consequence of Returns the configuration of this channel.
| |
| doBind | back to summary |
|---|---|
| protected void doBind(SocketAddress localAddress) throws Exception Implements abstract io. Doc from io. Bind the
| |
| doClose | back to summary |
|---|---|
| protected void doClose() throws Exception Overrides io. Doc from io. Close the
| |
| doConnect | back to summary |
|---|---|
| protected void doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception Implements abstract io. Doc from io. Connect to the remote peer using the given localAddress if one is specified or
| |
| doDisconnect | back to summary |
|---|---|
| protected void doDisconnect() throws Exception Implements abstract io. Doc from io. Disconnect this
| |
| doReadBytes | back to summary |
|---|---|
| protected int doReadBytes(ByteBuf buf) throws Exception Overrides io. Doc from io. Read bytes from the underlying Socket. | |
| doShutdownOutput | back to summary |
|---|---|
| protected final void doShutdownOutput() throws Exception Overrides io. Doc from io. Called when conditions justify shutting down the output portion of the channel. This may happen if a write operation throws an exception.
| |
| isActive | back to summary |
|---|---|
| public boolean isActive() Overrides io. Implements io. Doc from io. Return
| |
| isInputShutdown | back to summary |
|---|---|
| public boolean isInputShutdown() Implements abstract io. Implements io. Doc from io. Returns
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements io. Doc from io. Returns
| |
| isOutputShutdown | back to summary |
|---|---|
| public boolean isOutputShutdown() Implements io.
| |
| isShutdown | back to summary |
|---|---|
| public boolean isShutdown() Implements io. Doc from io. Determine if both the input and output of this channel have been shutdown.
| |
| localAddress | back to summary |
|---|---|
| public InetSocketAddress localAddress() Overrides io. Implements io. Doc from io. Returns the local address where this channel is bound to. The returned
| |
| localAddress0 | back to summary |
|---|---|
| protected SocketAddress localAddress0() Implements abstract io. Doc from io. Returns the
| |
| parent | back to summary |
|---|---|
| public ServerSocketChannel parent() Overrides io. Implements io. Doc from io. Returns the parent of this channel.
| |
| remoteAddress | back to summary |
|---|---|
| public InetSocketAddress remoteAddress() Overrides io. Implements io. Doc from io. Returns the remote address where this channel is connected to. The
returned
| |
| remoteAddress0 | back to summary |
|---|---|
| protected SocketAddress remoteAddress0() Implements abstract io. Doc from io. Return the
| |
| setReadPending | back to summary |
|---|---|
| protected void setReadPending(boolean readPending) Overrides io. Deprecated
| |
| shutdown | back to summary |
|---|---|
| public ChannelFuture shutdown() Implements io. Doc from io. Will shutdown the input and output sides of this channel.
| |
| shutdown | back to summary |
|---|---|
| public ChannelFuture shutdown(final ChannelPromise promise) Implements io. Doc from io. Will shutdown the input and output sides of this channel.
| |
| shutdownDone | back to summary |
|---|---|
| private static void shutdownDone(ChannelFuture shutdownOutputFuture, ChannelFuture shutdownInputFuture, ChannelPromise promise) | |
| shutdownInput | back to summary |
|---|---|
| public ChannelFuture shutdownInput() Implements abstract io. Implements io. Doc from io. Shutdown the input side of this channel.
| |
| shutdownInput | back to summary |
|---|---|
| public ChannelFuture shutdownInput(final ChannelPromise promise) Implements io. Doc from io. Will shutdown the input and notify
| |
| shutdownInput0 | back to summary |
|---|---|
| private void shutdownInput0(ChannelPromise promise) | |
| shutdownOutput | back to summary |
|---|---|
| public ChannelFuture shutdownOutput() Implements io.
| |
| shutdownOutput | back to summary |
|---|---|
| public ChannelFuture shutdownOutput(final ChannelPromise promise) Implements io. Doc from io. Will shutdown the output and notify
| |
| shutdownOutput0 | back to summary |
|---|---|
| private void shutdownOutput0(ChannelPromise promise) | |
| shutdownOutput0 | back to summary |
|---|---|
| private void shutdownOutput0() throws IOException | |
| shutdownOutputDone | back to summary |
|---|---|
| private void shutdownOutputDone(final ChannelFuture shutdownOutputFuture, final ChannelPromise promise) | |