Home / Function/ doBind0() — netty Function Reference

doBind0() — netty Function Reference

Architecture documentation for the doBind0() function in AbstractBootstrap.java from the netty codebase.

Function java Buffer Search called by 1

Entity Profile

Dependency Diagram

graph TD
  5bfd9a02_4ee5_8476_79ba_dcf7e5319962["doBind0()"]
  a88dc2b3_b55b_4623_5b37_4c0fc9181bb9["AbstractBootstrap"]
  5bfd9a02_4ee5_8476_79ba_dcf7e5319962 -->|defined in| a88dc2b3_b55b_4623_5b37_4c0fc9181bb9
  7ef04b23_ebc4_400b_e1bc_fdc2c162dfe6["ChannelFuture()"]
  7ef04b23_ebc4_400b_e1bc_fdc2c162dfe6 -->|calls| 5bfd9a02_4ee5_8476_79ba_dcf7e5319962
  style 5bfd9a02_4ee5_8476_79ba_dcf7e5319962 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/bootstrap/AbstractBootstrap.java lines 371–387

    private static void doBind0(
            final ChannelFuture regFuture, final Channel channel,
            final SocketAddress localAddress, final ChannelPromise promise) {

        // This method is invoked before channelRegistered() is triggered.  Give user handlers a chance to set up
        // the pipeline in its channelRegistered() implementation.
        channel.eventLoop().execute(new Runnable() {
            @Override
            public void run() {
                if (regFuture.isSuccess()) {
                    channel.bind(localAddress, promise).addListener(ChannelFutureListener.CLOSE_ON_FAILURE);
                } else {
                    promise.setFailure(regFuture.cause());
                }
            }
        });
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does doBind0() do?
doBind0() is a function in the netty codebase, defined in transport/src/main/java/io/netty/bootstrap/AbstractBootstrap.java.
Where is doBind0() defined?
doBind0() is defined in transport/src/main/java/io/netty/bootstrap/AbstractBootstrap.java at line 371.
What calls doBind0()?
doBind0() is called by 1 function(s): ChannelFuture.

Analyze Your Own Codebase

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

Try Supermodel Free