Refine search
protected NioUdtAcceptorChannel(final ServerSocketChannelUDT channelUDT) { super(null, channelUDT, OP_ACCEPT); try { channelUDT.configureBlocking(false); config = new DefaultUdtServerChannelConfig(this, channelUDT, true); } catch (final Exception e) { try { channelUDT.close(); } catch (final Exception e2) { if (logger.isWarnEnabled()) { logger.warn("Failed to close channel.", e2); } } throw new ChannelException("Failed to configure channel.", e); } }
@Override protected void doClose() throws Exception { javaChannel().close(); }
@Override protected SocketAddress localAddress0() { return SocketUtils.localSocketAddress(javaChannel().socket()); }
@Override protected SocketAddress localAddress0() { return javaChannel().socket().getLocalSocketAddress(); } @Override
@Override protected int doReadMessages(List<Object> buf) throws Exception { final SocketChannelUDT channelUDT = javaChannel().accept(); if (channelUDT == null) { return 0; } else { buf.add(new NioUdtByteConnectorChannel(this, channelUDT)); return 1; } }
@Override protected void doClose() throws Exception { javaChannel().close(); }
@Override protected SocketAddress localAddress0() { return SocketUtils.localSocketAddress(javaChannel().socket()); }
@Override protected SocketAddress localAddress0() { return javaChannel().socket().getLocalSocketAddress(); } @Override
@Override protected int doReadMessages(List<Object> buf) throws Exception { final SocketChannelUDT channelUDT = javaChannel().accept(); if (channelUDT == null) { return 0; } else { buf.add(new NioUdtMessageConnectorChannel(this, channelUDT)); return 1; } }
protected NioUdtAcceptorChannel(final ServerSocketChannelUDT channelUDT) { super(null, channelUDT, OP_ACCEPT); try { channelUDT.configureBlocking(false); config = new DefaultUdtServerChannelConfig(this, channelUDT, true); } catch (final Exception e) { try { channelUDT.close(); } catch (final Exception e2) { if (logger.isWarnEnabled()) { logger.warn("Failed to close channel.", e2); } } throw new ChannelException("Failed to configure channel.", e); } }
@Override protected void doClose() throws Exception { javaChannel().close(); }
@Override protected SocketAddress localAddress0() { return SocketUtils.localSocketAddress(javaChannel().socket()); }
@Override protected SocketAddress localAddress0() { return javaChannel().socket().getLocalSocketAddress(); } @Override
@Override protected int doReadMessages(List<Object> buf) throws Exception { final SocketChannelUDT channelUDT = javaChannel().accept(); if (channelUDT == null) { return 0; } else { buf.add(newConnectorChannel(channelUDT)); return 1; } }