SctpOutboundByteStreamHandler Class — netty Architecture
Architecture documentation for the SctpOutboundByteStreamHandler class in SctpOutboundByteStreamHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f670c385_58c4_e2f1_9435_e82164e41853["SctpOutboundByteStreamHandler"] bcdf55cb_2972_b7e9_f5f2_aa1d86256c3e["SctpOutboundByteStreamHandler.java"] f670c385_58c4_e2f1_9435_e82164e41853 -->|defined in| bcdf55cb_2972_b7e9_f5f2_aa1d86256c3e df62632a_bcf4_09dc_5c20_132ec73711c1["SctpOutboundByteStreamHandler()"] f670c385_58c4_e2f1_9435_e82164e41853 -->|method| df62632a_bcf4_09dc_5c20_132ec73711c1 3d70e2ea_5f1c_eb75_3ae6_6c457c183b84["encode()"] f670c385_58c4_e2f1_9435_e82164e41853 -->|method| 3d70e2ea_5f1c_eb75_3ae6_6c457c183b84
Relationship Graph
Source Code
transport-sctp/src/main/java/io/netty/handler/codec/sctp/SctpOutboundByteStreamHandler.java lines 30–59
public class SctpOutboundByteStreamHandler extends MessageToMessageEncoder<ByteBuf> {
private final int streamIdentifier;
private final int protocolIdentifier;
private final boolean unordered;
/**
* @param streamIdentifier stream number, this should be >=0 or <= max stream number of the association.
* @param protocolIdentifier supported application protocol id.
*/
public SctpOutboundByteStreamHandler(int streamIdentifier, int protocolIdentifier) {
this(streamIdentifier, protocolIdentifier, false);
}
/**
* @param streamIdentifier stream number, this should be >=0 or <= max stream number of the association.
* @param protocolIdentifier supported application protocol id.
* @param unordered if {@literal true}, SCTP Data Chunks will be sent with the U (unordered) flag set.
*/
public SctpOutboundByteStreamHandler(int streamIdentifier, int protocolIdentifier, boolean unordered) {
super(ByteBuf.class);
this.streamIdentifier = streamIdentifier;
this.protocolIdentifier = protocolIdentifier;
this.unordered = unordered;
}
@Override
protected void encode(ChannelHandlerContext ctx, ByteBuf msg, List<Object> out) throws Exception {
out.add(new SctpMessage(protocolIdentifier, streamIdentifier, unordered, msg.retain()));
}
}
Defined In
Source
Frequently Asked Questions
What is the SctpOutboundByteStreamHandler class?
SctpOutboundByteStreamHandler is a class in the netty codebase, defined in transport-sctp/src/main/java/io/netty/handler/codec/sctp/SctpOutboundByteStreamHandler.java.
Where is SctpOutboundByteStreamHandler defined?
SctpOutboundByteStreamHandler is defined in transport-sctp/src/main/java/io/netty/handler/codec/sctp/SctpOutboundByteStreamHandler.java at line 30.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free