doConnect() — netty Function Reference
Architecture documentation for the doConnect() function in NioDomainSocketChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 1e680888_eeab_1039_c0f4_f6e938f6d811["doConnect()"] cfd0ddf4_54f6_2e2b_6078_ee84ec74aadf["NioDomainSocketChannel"] 1e680888_eeab_1039_c0f4_f6e938f6d811 -->|defined in| cfd0ddf4_54f6_2e2b_6078_ee84ec74aadf 7184a4c1_f1ec_b01f_c31e_e83432e1f399["doBind()"] 1e680888_eeab_1039_c0f4_f6e938f6d811 -->|calls| 7184a4c1_f1ec_b01f_c31e_e83432e1f399 58738f4d_ed26_587f_f037_6ad735df115c["doClose()"] 1e680888_eeab_1039_c0f4_f6e938f6d811 -->|calls| 58738f4d_ed26_587f_f037_6ad735df115c style 1e680888_eeab_1039_c0f4_f6e938f6d811 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/socket/nio/NioDomainSocketChannel.java lines 306–325
@Override
protected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception {
if (localAddress != null) {
doBind(localAddress);
}
boolean success = false;
try {
boolean connected = SocketUtils.connect(javaChannel(), remoteAddress);
if (!connected) {
selectionKey().interestOps(SelectionKey.OP_CONNECT);
}
success = true;
return connected;
} finally {
if (!success) {
doClose();
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does doConnect() do?
doConnect() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/socket/nio/NioDomainSocketChannel.java.
Where is doConnect() defined?
doConnect() is defined in transport/src/main/java/io/netty/channel/socket/nio/NioDomainSocketChannel.java at line 306.
What does doConnect() call?
doConnect() calls 2 function(s): doBind, doClose.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free