method

ip_port

Importance_1
ip_port() public

Returns the port number as an integer.

Addrinfo.tcp("127.0.0.1", 80).ip_port    #=> 80
Addrinfo.tcp("::1", 80).ip_port          #=> 80
Show source
Register or log in to add new notes.