GETSERVBYPORT
Get Internet service which corresponds to port and protocol
SYNTAX
getservbyport ( int $port , string $protocol ) : string
PARAMETERS
port
The port number.
protocol
protocol is either "tcp" or "udp" (in lowercase).
RETURN
Returns the Internet service name as a string.
EXAMPLES
PORT PROTOCOL
http
1
21: ftp
22: ssh
23: telnet
25: smtp
43: nicname
70: gopher
79: finger
80: http
110: pop3
143: imap