Package io.netty.channel.sctp

Examples of io.netty.channel.sctp.SctpChannel


    @Override
    protected Object decode(ChannelHandlerContext ctx, Channel channel, Object msg) throws Exception {
        if (!(msg instanceof SctpFrame)) {
            return msg;
        }
        final SctpChannel sctpChannel = (SctpChannel) channel;
        final SctpFrame sctpFrame = (SctpFrame) msg;

        if (inboundStreamFilter.filter(sctpChannel, sctpFrame)) {

            final boolean complete = sctpFrame.getMessageInfo().isComplete();
View Full Code Here


    @Override
    protected Object encode(ChannelHandlerContext ctx, Channel channel, Object msg) throws Exception {
        if (!(msg instanceof ChannelBuffer)) {
            return msg;
        } else {
            SctpChannel sctpChannel = (SctpChannel) channel;
            final int streamIdentifier = sctpWriteStreamSelector.streamIdentifier(sctpChannel, msg);
            return new SctpFrame(protocolIdentifier, streamIdentifier, (ChannelBuffer) msg);
        }
    }
View Full Code Here

TOP

Related Classes of io.netty.channel.sctp.SctpChannel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.