Home / Function/ InetSocketAddress() — netty Function Reference

InetSocketAddress() — netty Function Reference

Architecture documentation for the InetSocketAddress() function in SockaddrIn.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  82ed4807_5503_6e69_ae80_fade3cf2ff9d["InetSocketAddress()"]
  0a4fbaf2_1e5c_bc5c_2cfb_5db23e53ba6c["SockaddrIn"]
  82ed4807_5503_6e69_ae80_fade3cf2ff9d -->|defined in| 0a4fbaf2_1e5c_bc5c_2cfb_5db23e53ba6c
  66acc2f9_19b1_a6f4_38ea_a96b0fbdd651["handleNetworkOrder()"]
  82ed4807_5503_6e69_ae80_fade3cf2ff9d -->|calls| 66acc2f9_19b1_a6f4_38ea_a96b0fbdd651
  style 82ed4807_5503_6e69_ae80_fade3cf2ff9d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-io_uring/src/main/java/io/netty/channel/uring/SockaddrIn.java lines 177–194

    static InetSocketAddress getIPv4(ByteBuffer memory, byte[] tmpArray) {
        assert tmpArray.length == IPV4_ADDRESS_LENGTH;
        int position = memory.position();
        memory.mark();
        try {
            int port = handleNetworkOrder(memory.order(),
                    memory.getShort(position + Native.SOCKADDR_IN_OFFSETOF_SIN_PORT)) & 0xFFFF;
            memory.position(position + Native.SOCKADDR_IN_OFFSETOF_SIN_ADDR + Native.IN_ADDRESS_OFFSETOF_S_ADDR);
            memory.get(tmpArray);
            try {
                return new InetSocketAddress(InetAddress.getByAddress(tmpArray), port);
            } catch (UnknownHostException ignore) {
                return null;
            }
        } finally {
            memory.reset();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does InetSocketAddress() do?
InetSocketAddress() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/SockaddrIn.java.
Where is InetSocketAddress() defined?
InetSocketAddress() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/SockaddrIn.java at line 177.
What does InetSocketAddress() call?
InetSocketAddress() calls 1 function(s): handleNetworkOrder.

Analyze Your Own Codebase

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

Try Supermodel Free