channelActive() — netty Function Reference
Architecture documentation for the channelActive() function in Http3ControlStreamOutboundHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 00b1d13d_6459_febf_81f0_12d6979c607f["channelActive()"] ac9fda69_8958_1431_6c61_8addd3cb4262["Http3ControlStreamOutboundHandler"] 00b1d13d_6459_febf_81f0_12d6979c607f -->|defined in| ac9fda69_8958_1431_6c61_8addd3cb4262 d88fa1e7_08f0_2f10_e0d6_0aba2015f5dd["write()"] 00b1d13d_6459_febf_81f0_12d6979c607f -->|calls| d88fa1e7_08f0_2f10_e0d6_0aba2015f5dd style 00b1d13d_6459_febf_81f0_12d6979c607f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http3/src/main/java/io/netty/handler/codec/http3/Http3ControlStreamOutboundHandler.java lines 54–74
@Override
public void channelActive(ChannelHandlerContext ctx) {
// We need to write 0x00 into the stream before doing anything else.
// See https://tools.ietf.org/html/draft-ietf-quic-http-32#section-6.2.1
// Just allocate 8 bytes which would be the max needed.
ByteBuf buffer = ctx.alloc().buffer(8);
Http3CodecUtils.writeVariableLengthInteger(buffer, Http3CodecUtils.HTTP3_CONTROL_STREAM_TYPE);
ctx.write(buffer);
// Add the encoder and decoder in the pipeline so we can handle Http3Frames. This needs to happen after
// we did write the type via a ByteBuf.
ctx.pipeline().addFirst(codec);
assert localSettings != null;
// If writing of the local settings fails let's just teardown the connection.
closeOnFailure(ctx.writeAndFlush(localSettings));
// Let the GC collect localSettings.
localSettings = null;
ctx.fireChannelActive();
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does channelActive() do?
channelActive() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3ControlStreamOutboundHandler.java.
Where is channelActive() defined?
channelActive() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3ControlStreamOutboundHandler.java at line 54.
What does channelActive() call?
channelActive() calls 1 function(s): write.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free