Flowdock
method

getservbyport

Importance_1
getservbyport(p1, p2 = v2) public

Obtains the port number for port.

If protocol_name is not given, “tcp” is assumed.

Socket.getservbyport(80)         #=> "www"
Socket.getservbyport(514, "tcp") #=> "shell"
Socket.getservbyport(514, "udp") #=> "syslog"
Show source
Register or log in to add new notes.