Class SctpOutboundByteStreamHandler

All Implemented Interfaces:
ChannelHandler, ChannelOutboundHandler

public class SctpOutboundByteStreamHandler extends MessageToMessageEncoder<ByteBuf>
A ChannelHandler which transform ByteBuf to SctpMessage and send it through a specific stream with given protocol identifier. Unordered delivery of all messages may be requested by passing unordered = true to the constructor.
  • Field Details

    • streamIdentifier

      private final int streamIdentifier
    • protocolIdentifier

      private final int protocolIdentifier
    • unordered

      private final boolean unordered
  • Constructor Details

    • SctpOutboundByteStreamHandler

      public SctpOutboundByteStreamHandler(int streamIdentifier, int protocolIdentifier)
      Parameters:
      streamIdentifier - stream number, this should be >=0 or invalid input: '<'= max stream number of the association.
      protocolIdentifier - supported application protocol id.
    • SctpOutboundByteStreamHandler

      public SctpOutboundByteStreamHandler(int streamIdentifier, int protocolIdentifier, boolean unordered)
      Parameters:
      streamIdentifier - stream number, this should be >=0 or invalid input: '<'= max stream number of the association.
      protocolIdentifier - supported application protocol id.
      unordered - if true, SCTP Data Chunks will be sent with the U (unordered) flag set.
  • Method Details