InetSocketAddress() — netty Function Reference
Architecture documentation for the InetSocketAddress() function in UnixChannelUtil.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c2512991_0e8f_adff_b717_4e5737b32c63["InetSocketAddress()"] a5a47451_0198_fe6a_e156_57cf834c5908["UnixChannelUtil"] c2512991_0e8f_adff_b717_4e5737b32c63 -->|defined in| a5a47451_0198_fe6a_e156_57cf834c5908 style c2512991_0e8f_adff_b717_4e5737b32c63 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-native-unix-common/src/main/java/io/netty/channel/unix/UnixChannelUtil.java lines 43–58
public static InetSocketAddress computeRemoteAddr(InetSocketAddress remoteAddr, InetSocketAddress osRemoteAddr) {
if (osRemoteAddr != null) {
try {
// Only try to construct a new InetSocketAddress if we using java >= 7 as getHostString() does not
// exists in earlier releases and so the retrieval of the hostname could block the EventLoop if a
// reverse lookup would be needed.
return new InetSocketAddress(InetAddress.getByAddress(remoteAddr.getHostString(),
osRemoteAddr.getAddress().getAddress()),
osRemoteAddr.getPort());
} catch (UnknownHostException ignore) {
// Should never happen but fallback to osRemoteAddr anyway.
}
return osRemoteAddr;
}
return remoteAddr;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does InetSocketAddress() do?
InetSocketAddress() is a function in the netty codebase, defined in transport-native-unix-common/src/main/java/io/netty/channel/unix/UnixChannelUtil.java.
Where is InetSocketAddress() defined?
InetSocketAddress() is defined in transport-native-unix-common/src/main/java/io/netty/channel/unix/UnixChannelUtil.java at line 43.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free