Home / Function/ doConnect() — netty Function Reference

doConnect() — netty Function Reference

Architecture documentation for the doConnect() function in NioSctpChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ddc6f272_f305_a0ae_1f93_04e3ac83dbdc["doConnect()"]
  ce6c049a_7822_1e77_29fc_0d83a1e2ef54["NioSctpChannel"]
  ddc6f272_f305_a0ae_1f93_04e3ac83dbdc -->|defined in| ce6c049a_7822_1e77_29fc_0d83a1e2ef54
  b472200a_4015_3c31_a803_19209f8d284e["doClose()"]
  ddc6f272_f305_a0ae_1f93_04e3ac83dbdc -->|calls| b472200a_4015_3c31_a803_19209f8d284e
  style ddc6f272_f305_a0ae_1f93_04e3ac83dbdc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-sctp/src/main/java/io/netty/channel/sctp/nio/NioSctpChannel.java lines 226–245

    @Override
    protected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception {
        if (localAddress != null) {
            javaChannel().bind(localAddress);
        }

        boolean success = false;
        try {
            boolean connected = javaChannel().connect(remoteAddress);
            if (!connected) {
                addAndSubmit(NioIoOps.CONNECT);
            }
            success = true;
            return connected;
        } finally {
            if (!success) {
                doClose();
            }
        }
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does doConnect() do?
doConnect() is a function in the netty codebase, defined in transport-sctp/src/main/java/io/netty/channel/sctp/nio/NioSctpChannel.java.
Where is doConnect() defined?
doConnect() is defined in transport-sctp/src/main/java/io/netty/channel/sctp/nio/NioSctpChannel.java at line 226.
What does doConnect() call?
doConnect() calls 1 function(s): doClose.

Analyze Your Own Codebase

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

Try Supermodel Free