Home / Function/ initChannel() — netty Function Reference

initChannel() — netty Function Reference

Architecture documentation for the initChannel() function in WorldClockClientInitializer.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  1cc6fa42_bf57_1941_f493_9ee86f685bcd["initChannel()"]
  15f1184e_244b_19b6_0a61_3d6ee08df31b["WorldClockClientInitializer"]
  1cc6fa42_bf57_1941_f493_9ee86f685bcd -->|defined in| 15f1184e_244b_19b6_0a61_3d6ee08df31b
  style 1cc6fa42_bf57_1941_f493_9ee86f685bcd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

example/src/main/java/io/netty/example/worldclock/WorldClockClientInitializer.java lines 35–49

    @Override
    public void initChannel(SocketChannel ch) {
        ChannelPipeline p = ch.pipeline();
        if (sslCtx != null) {
            p.addLast(sslCtx.newHandler(ch.alloc(), WorldClockClient.HOST, WorldClockClient.PORT));
        }

        p.addLast(new ProtobufVarint32FrameDecoder());
        p.addLast(new ProtobufDecoder(WorldClockProtocol.LocalTimes.getDefaultInstance()));

        p.addLast(new ProtobufVarint32LengthFieldPrepender());
        p.addLast(new ProtobufEncoder());

        p.addLast(new WorldClockClientHandler());
    }

Domain

Subdomains

Frequently Asked Questions

What does initChannel() do?
initChannel() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/worldclock/WorldClockClientInitializer.java.
Where is initChannel() defined?
initChannel() is defined in example/src/main/java/io/netty/example/worldclock/WorldClockClientInitializer.java at line 35.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free