public interface ServerSocketChannel extends ServerChannel
ServerChannel
which accepts incoming TCP/IP connections.Channel.Unsafe
Modifier and Type | Method and Description |
---|---|
ServerSocketChannelConfig |
config()
Returns the configuration of this channel.
|
InetSocketAddress |
localAddress()
Returns the local address where this channel is bound to.
|
InetSocketAddress |
remoteAddress()
Returns the remote address where this channel is connected to.
|
alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isActive, isOpen, isRegistered, isWritable, metadata, parent, pipeline, read, unsafe
attr, hasAttr
bind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlush
compareTo
ServerSocketChannelConfig config()
Channel
InetSocketAddress localAddress()
Channel
SocketAddress
is supposed to be down-cast into more concrete
type such as InetSocketAddress
to retrieve the detailed
information.localAddress
in interface Channel
null
if this channel is not bound.InetSocketAddress remoteAddress()
Channel
SocketAddress
is supposed to be down-cast into more
concrete type such as InetSocketAddress
to retrieve the detailed
information.remoteAddress
in interface Channel
null
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 DefaultAddressedEnvelope.recipient()
to determine
the origination of the received message as this method will
return null
.Copyright © 2008–2017 The Netty Project. All rights reserved.