Home / Function/ Inet4Address() — netty Function Reference

Inet4Address() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  a85db25a_8b8e_22ea_ec4a_339d1e373422["Inet4Address()"]
  079fd0dd_85b4_85e3_2cd2_da5d5fb2b78e["NetUtilInitializations"]
  a85db25a_8b8e_22ea_ec4a_339d1e373422 -->|defined in| 079fd0dd_85b4_85e3_2cd2_da5d5fb2b78e
  style a85db25a_8b8e_22ea_ec4a_339d1e373422 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/NetUtilInitializations.java lines 43–55

    static Inet4Address createLocalhost4() {
        byte[] LOCALHOST4_BYTES = {127, 0, 0, 1};

        Inet4Address localhost4 = null;
        try {
            localhost4 = (Inet4Address) InetAddress.getByAddress("localhost", LOCALHOST4_BYTES);
        } catch (Exception e) {
            // We should not get here as long as the length of the address is correct.
            PlatformDependent.throwException(e);
        }

        return localhost4;
    }

Domain

Subdomains

Frequently Asked Questions

What does Inet4Address() do?
Inet4Address() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/NetUtilInitializations.java.
Where is Inet4Address() defined?
Inet4Address() is defined in common/src/main/java/io/netty/util/NetUtilInitializations.java at line 43.

Analyze Your Own Codebase

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

Try Supermodel Free