getservbyname

(PHP 4 >= 4.0b4)

getservbyname -- obtiene el n£mero del puerto asociado al servicio Internet especificado

Descripción

int getservbyname (string service, string protocol)

getservbyname() devuelve el puerto que corresponde al service especificado por el protocol en /etc/services. protocol puede ser tcp o udp. Ver también getservbyport().