initChannel() — netty Function Reference
Architecture documentation for the initChannel() function in TelnetClientInitializer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 623e6ab2_31ff_c79d_9f90_e45d4bbd93ef["initChannel()"] 75c6d7f3_01a8_ceba_a215_062ca216fa20["TelnetClientInitializer"] 623e6ab2_31ff_c79d_9f90_e45d4bbd93ef -->|defined in| 75c6d7f3_01a8_ceba_a215_062ca216fa20 style 623e6ab2_31ff_c79d_9f90_e45d4bbd93ef fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/telnet/TelnetClientInitializer.java lines 43–58
@Override
public void initChannel(SocketChannel ch) {
ChannelPipeline pipeline = ch.pipeline();
if (sslCtx != null) {
pipeline.addLast(sslCtx.newHandler(ch.alloc(), TelnetClient.HOST, TelnetClient.PORT));
}
// Add the text line codec combination first,
pipeline.addLast(new DelimiterBasedFrameDecoder(8192, Delimiters.lineDelimiter()));
pipeline.addLast(DECODER);
pipeline.addLast(ENCODER);
// and then business logic.
pipeline.addLast(CLIENT_HANDLER);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does initChannel() do?
initChannel() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/telnet/TelnetClientInitializer.java.
Where is initChannel() defined?
initChannel() is defined in example/src/main/java/io/netty/example/telnet/TelnetClientInitializer.java at line 43.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free