struct PortChecker
- PortChecker
- Struct
- Value
- Object
Overview
Creates local Sockets to know local available ports.
Defined in:
port_checker.crConstructors
Instance Method Summary
- #address=(host : String)
-
#available_port?(port : Int32) : Bool
Returns an available port.
-
#first_available_port(start_port : Int32 = @ipaddress.port) : Int32?
Returns the first available port.
- #ipaddress : Socket::IPAddress
- #tcp : Bool
- #tcp=(tcp : Bool)
- #udp : Bool
- #udp=(udp : Bool)
Constructor Detail
Instance Method Detail
def first_available_port(start_port : Int32 = @ipaddress.port) : Int32?
#
Returns the first available port.