示例#1
0
 public SctpServer(SocketAddress listenAddress) throws IOException {
   this.channel = com.sun.nio.sctp.SctpMultiChannel.open();
   this.channel.bind(listenAddress);
   System.out.println(
       "SCTP_FRAGMENT_INTERLEAVE = "
           + this.channel.getOption(
               com.sun.nio.sctp.SctpStandardSocketOptions.SCTP_FRAGMENT_INTERLEAVE, null));
   this.byteBuffer = ByteBuffer.allocate(20000);
   System.out.println("channel local addresses " + channel.getAllLocalAddresses());
 }