Home / Type/ SocksSubnegotiationVersion Type — netty Architecture

SocksSubnegotiationVersion Type — netty Architecture

Architecture documentation for the SocksSubnegotiationVersion type/interface in SocksSubnegotiationVersion.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d975e0ba_590b_1e8d_ee7d_806af34a5f9f["SocksSubnegotiationVersion"]
  4d2ed525_0869_d70e_6e7e_f8d806988aa9["SocksSubnegotiationVersion.java"]
  d975e0ba_590b_1e8d_ee7d_806af34a5f9f -->|defined in| 4d2ed525_0869_d70e_6e7e_f8d806988aa9
  style d975e0ba_590b_1e8d_ee7d_806af34a5f9f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-socks/src/main/java/io/netty/handler/codec/socks/SocksSubnegotiationVersion.java lines 19–49

public enum SocksSubnegotiationVersion {
    AUTH_PASSWORD((byte) 0x01),
    UNKNOWN((byte) 0xff);

    private final byte b;

    SocksSubnegotiationVersion(byte b) {
        this.b = b;
    }

    /**
     * @deprecated Use {@link #valueOf(byte)} instead.
     */
    @Deprecated
    public static SocksSubnegotiationVersion fromByte(byte b) {
        return valueOf(b);
    }

    public static SocksSubnegotiationVersion valueOf(byte b) {
        for (SocksSubnegotiationVersion code : values()) {
            if (code.b == b) {
                return code;
            }
        }
        return UNKNOWN;
    }

    public byte byteValue() {
        return b;
    }
}

Frequently Asked Questions

What is the SocksSubnegotiationVersion type?
SocksSubnegotiationVersion is a type/interface in the netty codebase, defined in codec-socks/src/main/java/io/netty/handler/codec/socks/SocksSubnegotiationVersion.java.
Where is SocksSubnegotiationVersion defined?
SocksSubnegotiationVersion is defined in codec-socks/src/main/java/io/netty/handler/codec/socks/SocksSubnegotiationVersion.java at line 19.

Analyze Your Own Codebase

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

Try Supermodel Free