Home / Function/ SocketAddress() — netty Function Reference

SocketAddress() — netty Function Reference

Architecture documentation for the SocketAddress() function in NioServerDomainSocketChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9db9fa4b_0735_6d00_60ae_ab713b7940d9["SocketAddress()"]
  715453c3_0f58_2676_dfae_1919ea420212["NioServerDomainSocketChannel"]
  9db9fa4b_0735_6d00_60ae_ab713b7940d9 -->|defined in| 715453c3_0f58_2676_dfae_1919ea420212
  style 9db9fa4b_0735_6d00_60ae_ab713b7940d9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/socket/nio/NioServerDomainSocketChannel.java lines 185–195

    @Override
    protected SocketAddress localAddress0() {
        // do not use unsafe which uses native transport (epoll or kqueue)
        // do not use javaChannel().socket() which is not nio
        try {
            return javaChannel().getLocalAddress();
        } catch (Exception ignore) {
            // ignore
        }
        return null;
    }

Domain

Subdomains

Frequently Asked Questions

What does SocketAddress() do?
SocketAddress() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/socket/nio/NioServerDomainSocketChannel.java.
Where is SocketAddress() defined?
SocketAddress() is defined in transport/src/main/java/io/netty/channel/socket/nio/NioServerDomainSocketChannel.java at line 185.

Analyze Your Own Codebase

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

Try Supermodel Free