class MuxingServerSocket extends DelegatingServerSocket
ServerSocket
associated with a
MuxingServerSocketChannel
.channel, delegate
Constructor and Description |
---|
MuxingServerSocket(ServerSocket delegate,
MuxingServerSocketChannel channel)
Initializes a new
MuxingServerSocket instance which delegates
(its method calls) to a specific ServerSocket and is associated
with a specific MuxingServerSocketChannel . |
accept, bind, bind, close, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSoTimeout, toString
implAccept, setSocketFactory
public MuxingServerSocket(ServerSocket delegate, MuxingServerSocketChannel channel) throws IOException
MuxingServerSocket
instance which delegates
(its method calls) to a specific ServerSocket
and is associated
with a specific MuxingServerSocketChannel
.delegate
- the ServerSocket
the new instance is to delegate
(its method calls) to. Technically, it is the socket
of the
delegate
of channel
.channel
- the MuxingServerSocketChannel
associated with the
new instanceIOException
- if an I/O error occursCopyright © 2018. All rights reserved.