@Override protected void doBind(SocketAddress localAddress) throws Exception { sch.bind(localAddress, config.getBacklog()); }
@Override protected void doBind(SocketAddress localAddress) throws Exception { javaChannel().bind(localAddress, config.getBacklog()); }
@Override protected void doBind(SocketAddress localAddress) throws Exception { sch.bind(localAddress, config.getBacklog()); }
@Override protected void doBind(SocketAddress localAddress) throws Exception { sch.bind(localAddress, config.getBacklog()); }
@Override protected void doBind(SocketAddress localAddress) throws Exception { javaChannel().bind(localAddress, config.getBacklog()); }
@Override protected void doBind(SocketAddress localAddress) throws Exception { javaChannel().bind(localAddress, config.getBacklog()); }
private void bind( SctpServerChannelImpl channel, ChannelFuture future, SocketAddress localAddress) { boolean bound = false; boolean bossStarted = false; try { channel.serverChannel.bind(localAddress, channel.getConfig().getBacklog()); bound = true; channel.setBound(); future.setSuccess(); fireChannelBound(channel, channel.getLocalAddress()); Executor bossExecutor = ((SctpServerSocketChannelFactory) channel.getFactory()).bossExecutor; DeadLockProofWorker.start(bossExecutor, new Boss(channel)); bossStarted = true; } catch (Throwable t) { future.setFailure(t); fireExceptionCaught(channel, t); } finally { if (!bossStarted && bound) { close(channel, future); } } }