doConnect() — netty Function Reference
Architecture documentation for the doConnect() function in NioUdtMessageConnectorChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e692ed96_e78c_8ca3_c6ad_34ccae59a3cf["doConnect()"] 06bc0141_1480_880a_48f9_8a253c01da1f["NioUdtMessageConnectorChannel"] e692ed96_e78c_8ca3_c6ad_34ccae59a3cf -->|defined in| 06bc0141_1480_880a_48f9_8a253c01da1f 20041cfd_c0eb_d2d0_c550_a15eccef2815["doBind()"] e692ed96_e78c_8ca3_c6ad_34ccae59a3cf -->|calls| 20041cfd_c0eb_d2d0_c550_a15eccef2815 77fcb7e1_10d1_94f6_aad7_7cae67270e25["InetSocketAddress()"] e692ed96_e78c_8ca3_c6ad_34ccae59a3cf -->|calls| 77fcb7e1_10d1_94f6_aad7_7cae67270e25 156c3317_9b46_9344_a1b8_ac40dd86311b["doClose()"] e692ed96_e78c_8ca3_c6ad_34ccae59a3cf -->|calls| 156c3317_9b46_9344_a1b8_ac40dd86311b style e692ed96_e78c_8ca3_c6ad_34ccae59a3cf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-udt/src/main/java/io/netty/channel/udt/nio/NioUdtMessageConnectorChannel.java lines 111–128
@Override
protected boolean doConnect(final SocketAddress remoteAddress,
final SocketAddress localAddress) throws Exception {
doBind(localAddress != null? localAddress : new InetSocketAddress(0));
boolean success = false;
try {
final boolean connected = SocketUtils.connect(javaChannel(), remoteAddress);
if (!connected) {
addAndSubmit(NioIoOps.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-udt/src/main/java/io/netty/channel/udt/nio/NioUdtMessageConnectorChannel.java.
Where is doConnect() defined?
doConnect() is defined in transport-udt/src/main/java/io/netty/channel/udt/nio/NioUdtMessageConnectorChannel.java at line 111.
What does doConnect() call?
doConnect() calls 3 function(s): InetSocketAddress, doBind, doClose.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free