public class NioSocketChannel extends AbstractNioChannel implements SocketChannel
AbstractNioChannel.AbstractNioUnsafe, AbstractNioChannel.NioUnsafeAbstractChannel.AbstractUnsafeChannel.UnsafeflushFutureNotifier| Constructor and Description |
|---|
NioSocketChannel() |
NioSocketChannel(Channel parent,
Integer id,
SocketChannel socket) |
NioSocketChannel(SocketChannel socket) |
| Modifier and Type | Method and Description |
|---|---|
SocketChannelConfig |
config()
Returns the configuration of this channel.
|
protected void |
doBind(SocketAddress localAddress) |
protected void |
doClose() |
protected boolean |
doConnect(SocketAddress remoteAddress,
SocketAddress localAddress) |
protected void |
doDisconnect() |
protected void |
doFinishConnect() |
protected void |
doFlushByteBuffer(io.netty.buffer.ByteBuf buf) |
protected int |
doReadBytes(io.netty.buffer.ByteBuf byteBuf) |
protected int |
doWriteBytes(io.netty.buffer.ByteBuf buf,
boolean lastSpin) |
boolean |
isActive() |
boolean |
isInputShutdown()
Returns
true if and only if the remote peer shut down its output so that no more
data is received from this channel. |
boolean |
isOutputShutdown() |
protected SocketChannel |
javaChannel() |
protected SocketAddress |
localAddress0() |
ChannelMetadata |
metadata()
|
protected io.netty.channel.socket.nio.AbstractNioByteChannel.NioByteUnsafe |
newUnsafe() |
protected SocketAddress |
remoteAddress0() |
ChannelFuture |
shutdownOutput() |
doDeregister, doRegister, isCompatible, isFlushPending, isOpen, localAddress, remoteAddress, selectionKey, unsafebind, bind, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doFlushMessageBuffer, doPreClose, equals, eventLoop, flush, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, newFailedFuture, newFuture, newSucceededFuture, outboundByteBuffer, outboundMessageBuffer, parent, pipeline, toString, write, writeclone, finalize, getClass, notify, notifyAll, wait, wait, waitlocalAddress, remoteAddresscloseFuture, eventLoop, id, isOpen, isRegistered, outboundByteBuffer, outboundMessageBuffer, parent, pipeline, unsafebind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, flush, flush, write, writenewFailedFuture, newFuture, newSucceededFuturecompareTopublic NioSocketChannel()
public NioSocketChannel(SocketChannel socket)
public NioSocketChannel(Channel parent, Integer id, SocketChannel socket)
public ChannelMetadata metadata()
Channelpublic SocketChannelConfig config()
Channelconfig in interface Channelconfig in interface SocketChannelprotected SocketChannel javaChannel()
javaChannel in class AbstractNioChannelpublic boolean isInputShutdown()
SocketChanneltrue if and only if the remote peer shut down its output so that no more
data is received from this channel. Note that the semantic of this method is different from
that of Socket.shutdownInput() and Socket.isInputShutdown().isInputShutdown in interface SocketChannelpublic boolean isOutputShutdown()
isOutputShutdown in interface SocketChannelSocket.isOutputShutdown()public ChannelFuture shutdownOutput()
shutdownOutput in interface SocketChannelSocket.shutdownOutput()protected SocketAddress localAddress0()
localAddress0 in class AbstractChannelprotected SocketAddress remoteAddress0()
remoteAddress0 in class AbstractChannelprotected void doBind(SocketAddress localAddress) throws Exception
doBind in class AbstractChannelExceptionprotected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception
doConnect in class AbstractNioChannelExceptionprotected void doFinishConnect()
throws Exception
doFinishConnect in class AbstractNioChannelExceptionprotected void doDisconnect()
throws Exception
doDisconnect in class AbstractChannelExceptionprotected void doClose()
throws Exception
doClose in class AbstractChannelExceptionprotected int doReadBytes(io.netty.buffer.ByteBuf byteBuf)
throws Exception
Exceptionprotected int doWriteBytes(io.netty.buffer.ByteBuf buf,
boolean lastSpin)
throws Exception
Exceptionprotected io.netty.channel.socket.nio.AbstractNioByteChannel.NioByteUnsafe newUnsafe()
newUnsafe in class AbstractChannelprotected void doFlushByteBuffer(io.netty.buffer.ByteBuf buf)
throws Exception
doFlushByteBuffer in class AbstractChannelExceptionCopyright © 2008-2012 The Netty Project. All Rights Reserved.