sendInitialMessage() — netty Function Reference
Architecture documentation for the sendInitialMessage() function in ProxyHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3700afc1_1278_9142_32f8_fc09a8d61980["sendInitialMessage()"] 3f5c9c39_cf82_6deb_e43b_1a9ad5499a99["ProxyHandler"] 3700afc1_1278_9142_32f8_fc09a8d61980 -->|defined in| 3f5c9c39_cf82_6deb_e43b_1a9ad5499a99 da781d19_5c1d_4dd3_b6b2_67a2104c7c27["handlerAdded()"] da781d19_5c1d_4dd3_b6b2_67a2104c7c27 -->|calls| 3700afc1_1278_9142_32f8_fc09a8d61980 96c215c5_320d_e6f2_5984_ce66a5cc0bed["channelActive()"] 96c215c5_320d_e6f2_5984_ce66a5cc0bed -->|calls| 3700afc1_1278_9142_32f8_fc09a8d61980 e5452aa5_fc3e_4478_6f1c_39e017cd9292["setConnectFailure()"] 3700afc1_1278_9142_32f8_fc09a8d61980 -->|calls| e5452aa5_fc3e_4478_6f1c_39e017cd9292 196fb496_aba2_7568_3885_f6ad1bd83dbb["sendToProxyServer()"] 3700afc1_1278_9142_32f8_fc09a8d61980 -->|calls| 196fb496_aba2_7568_3885_f6ad1bd83dbb 6bc1e1b4_371b_8c40_044e_37bcb24641f0["readIfNeeded()"] 3700afc1_1278_9142_32f8_fc09a8d61980 -->|calls| 6bc1e1b4_371b_8c40_044e_37bcb24641f0 style 3700afc1_1278_9142_32f8_fc09a8d61980 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler-proxy/src/main/java/io/netty/handler/proxy/ProxyHandler.java lines 190–209
private void sendInitialMessage(final ChannelHandlerContext ctx) throws Exception {
final long connectTimeoutMillis = this.connectTimeoutMillis;
if (connectTimeoutMillis > 0) {
connectTimeoutFuture = ctx.executor().schedule(new Runnable() {
@Override
public void run() {
if (!connectPromise.isDone()) {
setConnectFailure(new ProxyConnectException(exceptionMessage("timeout")));
}
}
}, connectTimeoutMillis, TimeUnit.MILLISECONDS);
}
final Object initialMessage = newInitialMessage(ctx);
if (initialMessage != null) {
sendToProxyServer(initialMessage);
}
readIfNeeded(ctx);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does sendInitialMessage() do?
sendInitialMessage() is a function in the netty codebase, defined in handler-proxy/src/main/java/io/netty/handler/proxy/ProxyHandler.java.
Where is sendInitialMessage() defined?
sendInitialMessage() is defined in handler-proxy/src/main/java/io/netty/handler/proxy/ProxyHandler.java at line 190.
What does sendInitialMessage() call?
sendInitialMessage() calls 3 function(s): readIfNeeded, sendToProxyServer, setConnectFailure.
What calls sendInitialMessage()?
sendInitialMessage() is called by 2 function(s): channelActive, handlerAdded.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free