Skip to main content

Module port

Module port 

Source
Expand description

Deterministic port calculation and environment variable key formatting.

Functionsยง

calculate_effective_ports
Calculates effective ports: Effective Port = Base Port + Slot ID. Returns a map of environment key -> effective port, or PortError on overflow.
format_port_env_key
Converts a port key name to an uppercase environment variable name.
is_shared_service_port
Returns true if a port key represents a client connection to a shared service.