doConnect() — netty Function Reference
Architecture documentation for the doConnect() function in NioUdtByteConnectorChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD bed44421_5dc2_aa3b_923f_797300c75dc2["doConnect()"] 2579800b_abdf_2512_fff2_d79024a6fa96["NioUdtByteConnectorChannel"] bed44421_5dc2_aa3b_923f_797300c75dc2 -->|defined in| 2579800b_abdf_2512_fff2_d79024a6fa96 66e32a26_8c77_7612_013a_60b85ccac27e["doBind()"] bed44421_5dc2_aa3b_923f_797300c75dc2 -->|calls| 66e32a26_8c77_7612_013a_60b85ccac27e e4c19ff7_25c7_1e1a_0ca0_c6f94cb8f043["InetSocketAddress()"] bed44421_5dc2_aa3b_923f_797300c75dc2 -->|calls| e4c19ff7_25c7_1e1a_0ca0_c6f94cb8f043 4a1da996_1ddf_c239_3856_8a290d021cea["doClose()"] bed44421_5dc2_aa3b_923f_797300c75dc2 -->|calls| 4a1da996_1ddf_c239_3856_8a290d021cea style bed44421_5dc2_aa3b_923f_797300c75dc2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-udt/src/main/java/io/netty/channel/udt/nio/NioUdtByteConnectorChannel.java lines 107–124
@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/NioUdtByteConnectorChannel.java.
Where is doConnect() defined?
doConnect() is defined in transport-udt/src/main/java/io/netty/channel/udt/nio/NioUdtByteConnectorChannel.java at line 107.
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