public class SctpInboundByteStreamHandler extends io.netty.handler.codec.MessageToMessageDecoder<SctpMessage>
SctpMessage
s which belong to a application protocol form a specific
SCTP Stream and decode it as ByteBuf
.Constructor and Description |
---|
SctpInboundByteStreamHandler(int protocolIdentifier,
int streamIdentifier) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptInboundMessage(Object msg) |
protected boolean |
acceptInboundMessage(SctpMessage msg) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
SctpMessage msg,
List<Object> out) |
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public SctpInboundByteStreamHandler(int protocolIdentifier, int streamIdentifier)
streamIdentifier
- accepted stream number, this should be >=0 or <= max stream number of the association.protocolIdentifier
- supported application protocol.public final boolean acceptInboundMessage(Object msg) throws Exception
acceptInboundMessage
in class io.netty.handler.codec.MessageToMessageDecoder<SctpMessage>
Exception
protected boolean acceptInboundMessage(SctpMessage msg)
protected void decode(io.netty.channel.ChannelHandlerContext ctx, SctpMessage msg, List<Object> out) throws Exception
decode
in class io.netty.handler.codec.MessageToMessageDecoder<SctpMessage>
Exception
Copyright © 2008–2017 The Netty Project. All rights reserved.