Home / Function/ Object() — netty Function Reference

Object() — netty Function Reference

Architecture documentation for the Object() function in Socks5ProxyHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  baa14519_c32b_e086_335e_efbd66c594fa["Object()"]
  926eac21_d91e_6616_387b_ad05731b49a5["Socks5ProxyHandler"]
  baa14519_c32b_e086_335e_efbd66c594fa -->|defined in| 926eac21_d91e_6616_387b_ad05731b49a5
  style baa14519_c32b_e086_335e_efbd66c594fa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler-proxy/src/main/java/io/netty/handler/proxy/Socks5ProxyHandler.java lines 171–182

    @Override
    protected Object newInitialMessage(ChannelHandlerContext ctx) throws Exception {
        Socks5AuthMethod authMethod = socksAuthMethod();
        if (authMethod == Socks5AuthMethod.PASSWORD) {
            return INIT_REQUEST_PASSWORD;
        }
        if (Socks5AuthMethod.isPrivateMethod(authMethod.byteValue())) {
            return new DefaultSocks5InitialRequest(Arrays.asList(Socks5AuthMethod.NO_AUTH,
                authMethod));
        }
        return INIT_REQUEST_NO_AUTH;
    }

Domain

Subdomains

Frequently Asked Questions

What does Object() do?
Object() is a function in the netty codebase, defined in handler-proxy/src/main/java/io/netty/handler/proxy/Socks5ProxyHandler.java.
Where is Object() defined?
Object() is defined in handler-proxy/src/main/java/io/netty/handler/proxy/Socks5ProxyHandler.java at line 171.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free