Home / Function/ doBind() — netty Function Reference

doBind() — netty Function Reference

Architecture documentation for the doBind() function in EpollDatagramChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  c3b30228_031c_9274_e2a3_2e9e83ee3d0b["doBind()"]
  dab3c3bb_b3e2_f3b8_e8e0_37c99496afe9["EpollDatagramChannel"]
  c3b30228_031c_9274_e2a3_2e9e83ee3d0b -->|defined in| dab3c3bb_b3e2_f3b8_e8e0_37c99496afe9
  b19ff292_c963_02c3_fd98_3a4a04754e1e["InetSocketAddress()"]
  c3b30228_031c_9274_e2a3_2e9e83ee3d0b -->|calls| b19ff292_c963_02c3_fd98_3a4a04754e1e
  style c3b30228_031c_9274_e2a3_2e9e83ee3d0b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollDatagramChannel.java lines 349–362

    @Override
    protected void doBind(SocketAddress localAddress) throws Exception {
        if (localAddress instanceof InetSocketAddress) {
            InetSocketAddress socketAddress = (InetSocketAddress) localAddress;
            if (socketAddress.getAddress().isAnyLocalAddress() &&
                    socketAddress.getAddress() instanceof Inet4Address) {
                if (socket.family() == SocketProtocolFamily.INET6) {
                    localAddress = new InetSocketAddress(Native.INET6_ANY, socketAddress.getPort());
                }
            }
        }
        super.doBind(localAddress);
        active = true;
    }

Domain

Subdomains

Frequently Asked Questions

What does doBind() do?
doBind() is a function in the netty codebase, defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollDatagramChannel.java.
Where is doBind() defined?
doBind() is defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollDatagramChannel.java at line 349.
What does doBind() call?
doBind() calls 1 function(s): InetSocketAddress.

Analyze Your Own Codebase

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

Try Supermodel Free