Home / Function/ checkPort() — netty Function Reference

checkPort() — netty Function Reference

Architecture documentation for the checkPort() function in HAProxyMessage.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9e3cf994_2859_45d4_77bf_0af573a60545["checkPort()"]
  086e8ebe_0b5c_c158_91d0_e3710503e584["HAProxyMessage"]
  9e3cf994_2859_45d4_77bf_0af573a60545 -->|defined in| 086e8ebe_0b5c_c158_91d0_e3710503e584
  f4a83627_4b55_e57a_4cc8_cf8ebe863872["HAProxyMessage()"]
  f4a83627_4b55_e57a_4cc8_cf8ebe863872 -->|calls| 9e3cf994_2859_45d4_77bf_0af573a60545
  style 9e3cf994_2859_45d4_77bf_0af573a60545 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessage.java lines 469–486

    private static void checkPort(int port, AddressFamily addrFamily) {
        switch (addrFamily) {
        case AF_IPv6:
        case AF_IPv4:
            if (port < 0 || port > 65535) {
                throw new IllegalArgumentException("invalid port: " + port + " (expected: 0 ~ 65535)");
            }
            break;
        case AF_UNIX:
        case AF_UNSPEC:
            if (port != 0) {
                throw new IllegalArgumentException("port cannot be specified with addrFamily: " + addrFamily);
            }
            break;
        default:
            throw new IllegalArgumentException("unexpected addrFamily: " + addrFamily);
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does checkPort() do?
checkPort() is a function in the netty codebase, defined in codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessage.java.
Where is checkPort() defined?
checkPort() is defined in codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessage.java at line 469.
What calls checkPort()?
checkPort() is called by 1 function(s): HAProxyMessage.

Analyze Your Own Codebase

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

Try Supermodel Free