home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


getservbyport

getservbyport 
port
, 
proto

Translates a service (port) number to its corresponding names. proto is a protocol name such as "tcp" . The return value in list context is:

($name, $aliases, $port_number, $protocol_name)
In scalar context, getservbyport returns only the service port name.


Previous: Reference: getservbyname Perl in a Nutshell Next: Reference: getservent
Reference: getservbyname Book Index Reference: getservent

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.