RxtxClient Class — netty Architecture
Architecture documentation for the RxtxClient class in RxtxClient.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8ff14c5d_e4c4_8695_cf3b_38bfe48693b1["RxtxClient"] f5a2d031_c991_10ff_9cb4_a1483bee99ba["RxtxClient.java"] 8ff14c5d_e4c4_8695_cf3b_38bfe48693b1 -->|defined in| f5a2d031_c991_10ff_9cb4_a1483bee99ba 7be93842_d918_df8c_e12e_7d71c726999c["main()"] 8ff14c5d_e4c4_8695_cf3b_38bfe48693b1 -->|method| 7be93842_d918_df8c_e12e_7d71c726999c
Relationship Graph
Source Code
example/src/main/java/io/netty/example/rxtx/RxtxClient.java lines 32–61
public final class RxtxClient {
static final String PORT = System.getProperty("port", "/dev/ttyUSB0");
public static void main(String[] args) throws Exception {
EventLoopGroup group = new OioEventLoopGroup();
try {
Bootstrap b = new Bootstrap();
b.group(group)
.channel(RxtxChannel.class)
.handler(new ChannelInitializer<RxtxChannel>() {
@Override
public void initChannel(RxtxChannel ch) throws Exception {
ch.pipeline().addLast(
new LineBasedFrameDecoder(32768),
new StringEncoder(),
new StringDecoder(),
new RxtxClientHandler()
);
}
});
ChannelFuture f = b.connect(new RxtxDeviceAddress(PORT)).sync();
f.channel().closeFuture().sync();
} finally {
group.shutdownGracefully();
}
}
}
Source
Frequently Asked Questions
What is the RxtxClient class?
RxtxClient is a class in the netty codebase, defined in example/src/main/java/io/netty/example/rxtx/RxtxClient.java.
Where is RxtxClient defined?
RxtxClient is defined in example/src/main/java/io/netty/example/rxtx/RxtxClient.java at line 32.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free