Home / Function/ initChannel() — netty Function Reference

initChannel() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  f9d8ad95_91ae_d195_e6ca_24740eb97e7b["initChannel()"]
  c6b18489_c7ef_3103_f210_68f398057b94["WorldClockServerInitializer"]
  f9d8ad95_91ae_d195_e6ca_24740eb97e7b -->|defined in| c6b18489_c7ef_3103_f210_68f398057b94
  style f9d8ad95_91ae_d195_e6ca_24740eb97e7b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

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

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

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

        p.addLast(new WorldClockServerHandler());
    }

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/WorldClockServerInitializer.java.
Where is initChannel() defined?
initChannel() is defined in example/src/main/java/io/netty/example/worldclock/WorldClockServerInitializer.java at line 35.

Analyze Your Own Codebase

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

Try Supermodel Free