Home / Type/ SocksCmdType Type — netty Architecture

SocksCmdType Type — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  66019bb1_9bf8_bda5_b91c_22a5ad4813e9["SocksCmdType"]
  1f6b7761_3246_8206_8dc0_cf13b5d6b3f3["SocksCmdType.java"]
  66019bb1_9bf8_bda5_b91c_22a5ad4813e9 -->|defined in| 1f6b7761_3246_8206_8dc0_cf13b5d6b3f3
  style 66019bb1_9bf8_bda5_b91c_22a5ad4813e9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-socks/src/main/java/io/netty/handler/codec/socks/SocksCmdType.java lines 19–51

public enum SocksCmdType {
    CONNECT((byte) 0x01),
    BIND((byte) 0x02),
    UDP((byte) 0x03),
    UNKNOWN((byte) 0xff);

    private final byte b;

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

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

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

    public byte byteValue() {
        return b;
    }
}

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free