Home / Function/ handleProxyProtocol() — netty Function Reference

handleProxyProtocol() — netty Function Reference

Architecture documentation for the handleProxyProtocol() function in Socks4ProxyServer.java from the netty codebase.

Function java Buffer Allocators calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  a35fdca2_34a5_93ee_8df6_a105404d182a["handleProxyProtocol()"]
  0fe3f240_8dbf_ae00_6628_30dfeca43c96["Socks4IntermediaryHandler"]
  a35fdca2_34a5_93ee_8df6_a105404d182a -->|defined in| 0fe3f240_8dbf_ae00_6628_30dfeca43c96
  75bc00ad_fcbe_9a76_c277_9f5f07f68782["handleProxyProtocol()"]
  75bc00ad_fcbe_9a76_c277_9f5f07f68782 -->|calls| a35fdca2_34a5_93ee_8df6_a105404d182a
  75bc00ad_fcbe_9a76_c277_9f5f07f68782["handleProxyProtocol()"]
  a35fdca2_34a5_93ee_8df6_a105404d182a -->|calls| 75bc00ad_fcbe_9a76_c277_9f5f07f68782
  90dc76b7_3a78_6df5_59e1_b00ba7bca997["authenticate()"]
  a35fdca2_34a5_93ee_8df6_a105404d182a -->|calls| 90dc76b7_3a78_6df5_59e1_b00ba7bca997
  style a35fdca2_34a5_93ee_8df6_a105404d182a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler-proxy/src/test/java/io/netty/handler/proxy/Socks4ProxyServer.java lines 89–107

        @Override
        protected boolean handleProxyProtocol(ChannelHandlerContext ctx, Object msg) throws Exception {
            Socks4CommandRequest req = (Socks4CommandRequest) msg;
            Socks4CommandResponse res;

            if (!authenticate(ctx, req)) {
                res = new DefaultSocks4CommandResponse(Socks4CommandStatus.IDENTD_AUTH_FAILURE);
            } else {
                res = new DefaultSocks4CommandResponse(Socks4CommandStatus.SUCCESS);
                intermediaryDestination = SocketUtils.socketAddress(req.dstAddr(), req.dstPort());
            }

            ctx.write(res);

            ctx.pipeline().remove(Socks4ServerDecoder.class);
            ctx.pipeline().remove(Socks4ServerEncoder.class);

            return true;
        }

Domain

Subdomains

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/Socks4ProxyServer.java.
Where is handleProxyProtocol() defined?
handleProxyProtocol() is defined in handler-proxy/src/test/java/io/netty/handler/proxy/Socks4ProxyServer.java at line 89.
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