main() — netty Function Reference
Architecture documentation for the main() function in HexDumpProxy.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD dacc4e97_1787_ac81_26b7_a561e25cd017["main()"] e1dd0e3a_c810_3a38_3f9e_06526fd01c01["HexDumpProxy"] dacc4e97_1787_ac81_26b7_a561e25cd017 -->|defined in| e1dd0e3a_c810_3a38_3f9e_06526fd01c01 style dacc4e97_1787_ac81_26b7_a561e25cd017 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/proxy/HexDumpProxy.java lines 33–49
public static void main(String[] args) throws Exception {
System.err.println("Proxying *:" + LOCAL_PORT + " to " + REMOTE_HOST + ':' + REMOTE_PORT + " ...");
// Configure the bootstrap.
EventLoopGroup group = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
try {
ServerBootstrap b = new ServerBootstrap();
b.group(group)
.channel(NioServerSocketChannel.class)
.handler(new LoggingHandler(LogLevel.INFO))
.childHandler(new HexDumpProxyInitializer(REMOTE_HOST, REMOTE_PORT))
.childOption(ChannelOption.AUTO_READ, false)
.bind(LOCAL_PORT).sync().channel().closeFuture().sync();
} finally {
group.shutdownGracefully();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does main() do?
main() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/proxy/HexDumpProxy.java.
Where is main() defined?
main() is defined in example/src/main/java/io/netty/example/proxy/HexDumpProxy.java at line 33.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free