Home / Class/ HAProxyConstants Class — netty Architecture

HAProxyConstants Class — netty Architecture

Architecture documentation for the HAProxyConstants class in HAProxyConstants.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ace7bc6d_e136_90a8_6ee7_822543345f99["HAProxyConstants"]
  7edfe0db_695c_5016_2cf0_404c7642fdeb["HAProxyConstants.java"]
  ace7bc6d_e136_90a8_6ee7_822543345f99 -->|defined in| 7edfe0db_695c_5016_2cf0_404c7642fdeb
  b0101e14_ddb3_8d29_64ee_073e85d3a7e2["HAProxyConstants()"]
  ace7bc6d_e136_90a8_6ee7_822543345f99 -->|method| b0101e14_ddb3_8d29_64ee_073e85d3a7e2

Relationship Graph

Source Code

codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyConstants.java lines 19–86

final class HAProxyConstants {

    /**
     * Command byte constants
     */
    static final byte COMMAND_LOCAL_BYTE = 0x00;
    static final byte COMMAND_PROXY_BYTE = 0x01;

    /**
     * Version byte constants
     */
    static final byte VERSION_ONE_BYTE = 0x10;
    static final byte VERSION_TWO_BYTE = 0x20;

    /**
     * Transport protocol byte constants
     */
    static final byte TRANSPORT_UNSPEC_BYTE = 0x00;
    static final byte TRANSPORT_STREAM_BYTE = 0x01;
    static final byte TRANSPORT_DGRAM_BYTE = 0x02;

    /**
     * Address family byte constants
     */
    static final byte AF_UNSPEC_BYTE = 0x00;
    static final byte AF_IPV4_BYTE = 0x10;
    static final byte AF_IPV6_BYTE = 0x20;
    static final byte AF_UNIX_BYTE = 0x30;

    /**
     * Transport protocol and address family byte constants
     */
    static final byte TPAF_UNKNOWN_BYTE = 0x00;
    static final byte TPAF_TCP4_BYTE = 0x11;
    static final byte TPAF_TCP6_BYTE = 0x21;
    static final byte TPAF_UDP4_BYTE = 0x12;
    static final byte TPAF_UDP6_BYTE = 0x22;
    static final byte TPAF_UNIX_STREAM_BYTE = 0x31;
    static final byte TPAF_UNIX_DGRAM_BYTE = 0x32;

    /**
     * V2 protocol binary header prefix
     */
    static final byte[] BINARY_PREFIX = {
            (byte) 0x0D,
            (byte) 0x0A,
            (byte) 0x0D,
            (byte) 0x0A,
            (byte) 0x00,
            (byte) 0x0D,
            (byte) 0x0A,
            (byte) 0x51,
            (byte) 0x55,
            (byte) 0x49,
            (byte) 0x54,
            (byte) 0x0A
    };

    static final byte[] TEXT_PREFIX = {
            (byte) 'P',
            (byte) 'R',
            (byte) 'O',
            (byte) 'X',
            (byte) 'Y',
    };

    private HAProxyConstants() { }
}

Frequently Asked Questions

What is the HAProxyConstants class?
HAProxyConstants is a class in the netty codebase, defined in codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyConstants.java.
Where is HAProxyConstants defined?
HAProxyConstants is defined in codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyConstants.java at line 19.

Analyze Your Own Codebase

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

Try Supermodel Free