105106107108109110111112
@Override public int getReceiveBufferSize() { try { return javaChannel.getOption(SO_RCVBUF); } catch (IOException e) { throw new ChannelException(e); } }
114115116117118119120121122
@Override public SctpServerChannelConfig setReceiveBufferSize(int receiveBufferSize) { try { javaChannel.setOption(SO_RCVBUF, receiveBufferSize); } catch (IOException e) { throw new ChannelException(e); } return this; }
124125126127128129130131
@Override public InitMaxStreams getInitMaxStreams() { try { return javaChannel.getOption(SCTP_INIT_MAXSTREAMS); } catch (IOException e) { throw new ChannelException(e); } }
133134135136137138139140141
@Override public SctpServerChannelConfig setInitMaxStreams(InitMaxStreams initMaxStreams) { try { javaChannel.setOption(SCTP_INIT_MAXSTREAMS, initMaxStreams); } catch (IOException e) { throw new ChannelException(e); } return this; }
6869707172737475
private static SctpChannel newSctpChannel() { try { return SctpChannel.open(); } catch (IOException e) { throw new ChannelException("Failed to open a sctp channel.", e); } }
9899100101102103104105
@Override public boolean isSctpNoDelay() { try { return javaChannel.getOption(SctpStandardSocketOptions.SCTP_NODELAY); } catch (IOException e) { throw new ChannelException(e); } }
111112113114115116117118
logger.warn( "Failed to close a partially initialized sctp channel.", e2); } } throw new ChannelException("Failed to enter non-blocking mode.", e); } }
107108109110111112113114115
@Override public SctpChannelConfig setSctpNoDelay(boolean sctpNoDelay) { try { javaChannel.setOption(SctpStandardSocketOptions.SCTP_NODELAY, sctpNoDelay); } catch (IOException e) { throw new ChannelException(e); } return this; }
117118119120121122123124
@Override public int getSendBufferSize() { try { return javaChannel.getOption(SctpStandardSocketOptions.SO_SNDBUF); } catch (IOException e) { throw new ChannelException(e); } }
126127128129130131132133134
@Override public SctpChannelConfig setSendBufferSize(int sendBufferSize) { try { javaChannel.setOption(SctpStandardSocketOptions.SO_SNDBUF, sendBufferSize); } catch (IOException e) { throw new ChannelException(e); } return this; }