LocalAddress() — netty Function Reference
Architecture documentation for the LocalAddress() function in LocalChannelRegistry.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 72ef2984_028e_1097_3333_167d4629cb95["LocalAddress()"] f027f74b_7581_0b0b_c41d_d4163f747680["LocalChannelRegistry"] 72ef2984_028e_1097_3333_167d4629cb95 -->|defined in| f027f74b_7581_0b0b_c41d_d4163f747680 style 72ef2984_028e_1097_3333_167d4629cb95 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/local/LocalChannelRegistry.java lines 30–49
static LocalAddress register(
Channel channel, LocalAddress oldLocalAddress, SocketAddress localAddress) {
if (oldLocalAddress != null) {
throw new ChannelException("already bound");
}
if (!(localAddress instanceof LocalAddress)) {
throw new ChannelException("unsupported address type: " + StringUtil.simpleClassName(localAddress));
}
LocalAddress addr = (LocalAddress) localAddress;
if (LocalAddress.ANY.equals(addr)) {
addr = new LocalAddress(channel);
}
Channel boundChannel = boundChannels.putIfAbsent(addr, channel);
if (boundChannel != null) {
throw new ChannelException("address already in use by: " + boundChannel);
}
return addr;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does LocalAddress() do?
LocalAddress() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/local/LocalChannelRegistry.java.
Where is LocalAddress() defined?
LocalAddress() is defined in transport/src/main/java/io/netty/channel/local/LocalChannelRegistry.java at line 30.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free