Home / Function/ Inet4Address() — netty Function Reference

Inet4Address() — netty Function Reference

Architecture documentation for the Inet4Address() function in DnsQueryContextManager.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f37cb291_df28_62fb_15d2_92d996efdff6["Inet4Address()"]
  f72b2e69_7611_a48e_cf72_c0d4a5edb9ba["DnsQueryContextManager"]
  f37cb291_df28_62fb_15d2_92d996efdff6 -->|defined in| f72b2e69_7611_a48e_cf72_c0d4a5edb9ba
  style f37cb291_df28_62fb_15d2_92d996efdff6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

resolver-dns/src/main/java/io/netty/resolver/dns/DnsQueryContextManager.java lines 146–156

    private static Inet4Address toIPv4Address(Inet6Address a6) {
        assert a6.isIPv4CompatibleAddress();

        byte[] b6 = a6.getAddress();
        byte[] b4 = { b6[12], b6[13], b6[14], b6[15] };
        try {
            return (Inet4Address) InetAddress.getByAddress(b4);
        } catch (UnknownHostException e) {
            throw new Error(e);
        }
    }

Subdomains

Frequently Asked Questions

What does Inet4Address() do?
Inet4Address() is a function in the netty codebase, defined in resolver-dns/src/main/java/io/netty/resolver/dns/DnsQueryContextManager.java.
Where is Inet4Address() defined?
Inet4Address() is defined in resolver-dns/src/main/java/io/netty/resolver/dns/DnsQueryContextManager.java at line 146.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free