public interface SocketChannel extends Channel
Channel which was either accepted by
ServerSocketChannel or created by ClientSocketChannelFactory.Channel.Unsafe| Modifier and Type | Method and Description |
|---|---|
SocketChannelConfig |
config()
Returns the configuration of this channel.
|
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() |
InetSocketAddress |
localAddress()
Returns the local address where this channel is bound to.
|
InetSocketAddress |
remoteAddress()
Returns the remote address where this channel is connected to.
|
ChannelFuture |
shutdownOutput() |
closeFuture, eventLoop, id, isActive, isOpen, isRegistered, metadata, outboundByteBuffer, outboundMessageBuffer, parent, pipeline, unsafebind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, flush, flush, write, writenewFailedFuture, newFuture, newSucceededFuturecompareToSocketChannelConfig config()
ChannelInetSocketAddress localAddress()
ChannelSocketAddress is supposed to be down-cast into more concrete
type such as InetSocketAddress to retrieve the detailed
information.localAddress in interface Channelnull if this channel is not bound.InetSocketAddress remoteAddress()
ChannelSocketAddress is supposed to be down-cast into more
concrete type such as InetSocketAddress to retrieve the detailed
information.remoteAddress in interface Channelnull if this channel is not connected.
If this channel is not connected but it can receive messages
from arbitrary remote addresses (e.g. DatagramChannel,
use MessageEvent#getRemoteAddress() to determine
the origination of the received message as this method will
return null.boolean isInputShutdown()
true 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().boolean isOutputShutdown()
Socket.isOutputShutdown()ChannelFuture shutdownOutput()
Socket.shutdownOutput()Copyright © 2008-2012 The Netty Project. All Rights Reserved.