Class ServerSocketChannelUDT

All Implemented Interfaces:
ChannelUDT, Closeable, AutoCloseable, Channel, InterruptibleChannel, NetworkChannel

public class ServerSocketChannelUDT extends ServerSocketChannel implements ChannelUDT
ServerSocketChannel-like wrapper for SocketUDT can be either stream or message oriented, depending on TypeUDT

you must use SelectorProviderUDT.openServerSocketChannel() to obtain instance of this class; do not use JDK ServerSocketChannel.open();

example:

 SelectorProvider provider = SelectorProviderUDT.DATAGRAM;
 ServerSocketChannel acceptChannel = provider.openServerSocketChannel();
 ServerSocket acceptSocket = acceptChannel.socket();
 InetSocketAddress acceptAddress = new InetSocketAddress("localhost", 12345);
 acceptorSocket.bind(acceptAddress);
 assert acceptSocket.isBound();
 SocketChannel connectChannel = acceptChannel.accept();
 assert connectChannel.isConnected();