Channel channel = channelServer.accept(timeout);
if( channel==null )
throw new InterruptedIOException();
SynchChannel synchChannel = AsynchToSynchChannelAdapter.adapt(channel);
synchChannel.start();
return new SynchChannelToSocketAdapter(synchChannel);
}
public void bind(SocketAddress endpoint, int backlog) throws IOException {