doReadMessages() — netty Function Reference
Architecture documentation for the doReadMessages() function in NioServerDomainSocketChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3678ff56_ce87_ad90_894f_f7fa27080c91["doReadMessages()"] 715453c3_0f58_2676_dfae_1919ea420212["NioServerDomainSocketChannel"] 3678ff56_ce87_ad90_894f_f7fa27080c91 -->|defined in| 715453c3_0f58_2676_dfae_1919ea420212 style 3678ff56_ce87_ad90_894f_f7fa27080c91 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/socket/nio/NioServerDomainSocketChannel.java lines 144–163
@Override
protected int doReadMessages(List<Object> buf) throws Exception {
SocketChannel ch = SocketUtils.accept(javaChannel());
try {
if (ch != null) {
buf.add(new NioDomainSocketChannel(this, ch));
return 1;
}
} catch (Throwable t) {
logger.warn("Failed to create a new channel from an accepted socket.", t);
try {
ch.close();
} catch (Throwable t2) {
logger.warn("Failed to close a socket.", t2);
}
}
return 0;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does doReadMessages() do?
doReadMessages() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/socket/nio/NioServerDomainSocketChannel.java.
Where is doReadMessages() defined?
doReadMessages() is defined in transport/src/main/java/io/netty/channel/socket/nio/NioServerDomainSocketChannel.java at line 144.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free