SecureChatServer Class — netty Architecture
Architecture documentation for the SecureChatServer class in SecureChatServer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b712c202_e549_faea_290d_9e4da7a02431["SecureChatServer"] 227d2ef1_fb3c_1e3a_a8a4_01d326a8a670["SecureChatServer.java"] b712c202_e549_faea_290d_9e4da7a02431 -->|defined in| 227d2ef1_fb3c_1e3a_a8a4_01d326a8a670 4497be36_4452_ed44_9c8e_fb9856d3bad9["main()"] b712c202_e549_faea_290d_9e4da7a02431 -->|method| 4497be36_4452_ed44_9c8e_fb9856d3bad9
Relationship Graph
Source Code
example/src/main/java/io/netty/example/securechat/SecureChatServer.java lines 34–59
public final class SecureChatServer {
static final int PORT = Integer.parseInt(System.getProperty("port", "8992"));
public static void main(String[] args) throws Exception {
X509Bundle ssc = new CertificateBuilder()
.subject("cn=localhost")
.setIsCertificateAuthority(true)
.buildSelfSigned();
SslContext sslCtx = SslContextBuilder.forServer(ssc.toKeyManagerFactory())
.build();
EventLoopGroup group = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
try {
ServerBootstrap b = new ServerBootstrap();
b.group(group)
.channel(NioServerSocketChannel.class)
.handler(new LoggingHandler(LogLevel.INFO))
.childHandler(new SecureChatServerInitializer(sslCtx));
b.bind(PORT).sync().channel().closeFuture().sync();
} finally {
group.shutdownGracefully();
}
}
}
Source
Frequently Asked Questions
What is the SecureChatServer class?
SecureChatServer is a class in the netty codebase, defined in example/src/main/java/io/netty/example/securechat/SecureChatServer.java.
Where is SecureChatServer defined?
SecureChatServer is defined in example/src/main/java/io/netty/example/securechat/SecureChatServer.java at line 34.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free