handleProxyProtocol() — netty Function Reference
Architecture documentation for the handleProxyProtocol() function in Socks5ProxyServer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 45ff0113_b8f6_78c9_46ff_affe5aeaae55["handleProxyProtocol()"] e4805829_de58_8fbb_f55e_e88c6b610216["Socks5IntermediaryHandler"] 45ff0113_b8f6_78c9_46ff_affe5aeaae55 -->|defined in| e4805829_de58_8fbb_f55e_e88c6b610216 8d894358_6082_45ac_0214_3983ac1b3788["handleProxyProtocol()"] 8d894358_6082_45ac_0214_3983ac1b3788 -->|calls| 45ff0113_b8f6_78c9_46ff_affe5aeaae55 8d894358_6082_45ac_0214_3983ac1b3788["handleProxyProtocol()"] 45ff0113_b8f6_78c9_46ff_affe5aeaae55 -->|calls| 8d894358_6082_45ac_0214_3983ac1b3788 296d9c5e_12d0_8d1b_d9da_27490a48a43b["authenticate()"] 45ff0113_b8f6_78c9_46ff_affe5aeaae55 -->|calls| 296d9c5e_12d0_8d1b_d9da_27490a48a43b style 45ff0113_b8f6_78c9_46ff_affe5aeaae55 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler-proxy/src/test/java/io/netty/handler/proxy/Socks5ProxyServer.java lines 170–190
@Override
protected boolean handleProxyProtocol(ChannelHandlerContext ctx, Object msg) throws Exception {
if (!authenticated) {
authenticated = authenticate(ctx, msg);
return false;
}
Socks5CommandRequest req = (Socks5CommandRequest) msg;
assertEquals(Socks5CommandType.CONNECT, req.type());
Socks5CommandResponse res =
new DefaultSocks5CommandResponse(Socks5CommandStatus.SUCCESS, Socks5AddressType.IPv4);
intermediaryDestination = SocketUtils.socketAddress(req.dstAddr(), req.dstPort());
ctx.write(res);
ctx.pipeline().remove(ENCODER);
ctx.pipeline().remove(DECODER);
return true;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does handleProxyProtocol() do?
handleProxyProtocol() is a function in the netty codebase, defined in handler-proxy/src/test/java/io/netty/handler/proxy/Socks5ProxyServer.java.
Where is handleProxyProtocol() defined?
handleProxyProtocol() is defined in handler-proxy/src/test/java/io/netty/handler/proxy/Socks5ProxyServer.java at line 170.
What does handleProxyProtocol() call?
handleProxyProtocol() calls 2 function(s): authenticate, handleProxyProtocol.
What calls handleProxyProtocol()?
handleProxyProtocol() is called by 1 function(s): handleProxyProtocol.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free