SctpEchoClient Class — netty Architecture
Architecture documentation for the SctpEchoClient class in SctpEchoClient.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 15067895_0597_fe80_0b16_3084033dca03["SctpEchoClient"] f501ec9d_10a0_4563_0338_73169b2e9e1a["SctpEchoClient.java"] 15067895_0597_fe80_0b16_3084033dca03 -->|defined in| f501ec9d_10a0_4563_0338_73169b2e9e1a 0900e2dd_9e03_a2ae_def0_c650adf6ad0d["main()"] 15067895_0597_fe80_0b16_3084033dca03 -->|method| 0900e2dd_9e03_a2ae_def0_c650adf6ad0d
Relationship Graph
Source Code
example/src/main/java/io/netty/example/sctp/SctpEchoClient.java lines 36–69
public final class SctpEchoClient {
static final String HOST = System.getProperty("host", "127.0.0.1");
static final int PORT = Integer.parseInt(System.getProperty("port", "8007"));
static final int SIZE = Integer.parseInt(System.getProperty("size", "256"));
public static void main(String[] args) throws Exception {
// Configure the client.
EventLoopGroup group = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
try {
Bootstrap b = new Bootstrap();
b.group(group)
.channel(NioSctpChannel.class)
.option(SctpChannelOption.SCTP_NODELAY, true)
.handler(new ChannelInitializer<SctpChannel>() {
@Override
public void initChannel(SctpChannel ch) throws Exception {
ch.pipeline().addLast(
//new LoggingHandler(LogLevel.INFO),
new SctpEchoClientHandler());
}
});
// Start the client.
ChannelFuture f = b.connect(HOST, PORT).sync();
// Wait until the connection is closed.
f.channel().closeFuture().sync();
} finally {
// Shut down the event loop to terminate all threads.
group.shutdownGracefully();
}
}
}
Source
Frequently Asked Questions
What is the SctpEchoClient class?
SctpEchoClient is a class in the netty codebase, defined in example/src/main/java/io/netty/example/sctp/SctpEchoClient.java.
Where is SctpEchoClient defined?
SctpEchoClient is defined in example/src/main/java/io/netty/example/sctp/SctpEchoClient.java at line 36.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free