doWriteMessage() — netty Function Reference
Architecture documentation for the doWriteMessage() function in EpollDatagramChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD b105a0f5_23fa_a7fb_ac82_23b3039c4e43["doWriteMessage()"] dab3c3bb_b3e2_f3b8_e8e0_37c99496afe9["EpollDatagramChannel"] b105a0f5_23fa_a7fb_ac82_23b3039c4e43 -->|defined in| dab3c3bb_b3e2_f3b8_e8e0_37c99496afe9 5d8b824f_1d60_b1ed_e124_4f2179ce144c["doWrite()"] 5d8b824f_1d60_b1ed_e124_4f2179ce144c -->|calls| b105a0f5_23fa_a7fb_ac82_23b3039c4e43 style b105a0f5_23fa_a7fb_ac82_23b3039c4e43 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollDatagramChannel.java lines 432–459
private boolean doWriteMessage(Object msg) throws Exception {
final ByteBuf data;
final InetSocketAddress remoteAddress;
if (msg instanceof AddressedEnvelope) {
@SuppressWarnings("unchecked")
AddressedEnvelope<ByteBuf, InetSocketAddress> envelope =
(AddressedEnvelope<ByteBuf, InetSocketAddress>) msg;
data = envelope.content();
remoteAddress = envelope.recipient();
} else {
data = (ByteBuf) msg;
remoteAddress = null;
}
final int dataLen = data.readableBytes();
if (dataLen == 0) {
return true;
}
try {
return doWriteOrSendBytes(data, remoteAddress, false) > 0;
} catch (NativeIoException e) {
if (remoteAddress == null) {
throw translateForConnected(e);
}
throw e;
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does doWriteMessage() do?
doWriteMessage() is a function in the netty codebase, defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollDatagramChannel.java.
Where is doWriteMessage() defined?
doWriteMessage() is defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollDatagramChannel.java at line 432.
What calls doWriteMessage()?
doWriteMessage() is called by 1 function(s): doWrite.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free