main() — netty Function Reference
Architecture documentation for the main() function in TelnetServer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 81735264_e0fc_7e1d_bbf2_e3470261e449["main()"] a28664ef_8b9b_4794_8b10_88b4e653f7d4["TelnetServer"] 81735264_e0fc_7e1d_bbf2_e3470261e449 -->|defined in| a28664ef_8b9b_4794_8b10_88b4e653f7d4 style 81735264_e0fc_7e1d_bbf2_e3470261e449 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/telnet/TelnetServer.java lines 36–52
public static void main(String[] args) throws Exception {
// Configure SSL.
final SslContext sslCtx = ServerUtil.buildSslContext();
EventLoopGroup group = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
try {
ServerBootstrap b = new ServerBootstrap();
b.group(group)
.channel(NioServerSocketChannel.class)
.handler(new LoggingHandler(LogLevel.INFO))
.childHandler(new TelnetServerInitializer(sslCtx));
b.bind(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/telnet/TelnetServer.java.
Where is main() defined?
main() is defined in example/src/main/java/io/netty/example/telnet/TelnetServer.java at line 36.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free