channelActive() — netty Function Reference
Architecture documentation for the channelActive() function in QuicChannelEchoTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e1045f62_6ee7_c954_17a5_31211f40f0cd["channelActive()"] 6fffe389_9577_5718_7786_cbe035878b6a["EchoHandler"] e1045f62_6ee7_c954_17a5_31211f40f0cd -->|defined in| 6fffe389_9577_5718_7786_cbe035878b6a b6b62dd4_732e_55a3_c880_96407c90f51b["testEchoStartedFromServer()"] b6b62dd4_732e_55a3_c880_96407c90f51b -->|calls| e1045f62_6ee7_c954_17a5_31211f40f0cd 517fed06_cd16_bd40_97ea_e48339ad0706["testEchoStartedFromClient()"] 517fed06_cd16_bd40_97ea_e48339ad0706 -->|calls| e1045f62_6ee7_c954_17a5_31211f40f0cd style e1045f62_6ee7_c954_17a5_31211f40f0cd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicChannelEchoTest.java lines 386–401
@Override
public void channelActive(ChannelHandlerContext ctx) {
channel = ctx.channel();
QuicStreamChannel channel = (QuicStreamChannel) ctx.channel();
assertEquals(QuicStreamType.BIDIRECTIONAL, channel.type());
if (channel.isLocalCreated()) {
// Server starts with 1, client with 0
assertEquals(server ? 1 : 0, channel.streamId());
} else {
// Server starts with 1, client with 0
assertEquals(server ? 0 : 1, channel.streamId());
}
if (!autoRead) {
ctx.read();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does channelActive() do?
channelActive() is a function in the netty codebase, defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicChannelEchoTest.java.
Where is channelActive() defined?
channelActive() is defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicChannelEchoTest.java at line 386.
What calls channelActive()?
channelActive() is called by 2 function(s): testEchoStartedFromClient, testEchoStartedFromServer.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free