Class SctpOutboundByteStreamHandler

    • Constructor Detail

      • SctpOutboundByteStreamHandler

        public SctpOutboundByteStreamHandler​(int streamIdentifier,
                                             int protocolIdentifier)
        Parameters:
        streamIdentifier - stream number, this should be >=0 or <= 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 <= 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 Detail

      • encode

        protected void encode​(ChannelHandlerContext ctx,
                              ByteBuf msg,
                              java.util.List<java.lang.Object> out)
                       throws java.lang.Exception
        Description copied from class: MessageToMessageEncoder
        Encode from one message to an other. This method will be called for each written message that can be handled by this encoder.
        Specified by:
        encode in class MessageToMessageEncoder<ByteBuf>
        Parameters:
        ctx - the ChannelHandlerContext which this MessageToMessageEncoder belongs to
        msg - the message to encode to an other one
        out - the List into which the encoded msg should be added needs to do some kind of aggregation
        Throws:
        java.lang.Exception - is thrown if an error occurs