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


getprotobyname

getprotobyname 
name

Translates a protocol name to its corresponding number. The return value in list context is:

($name, $aliases, $protocol_number)
In scalar context, getprotobyname returns only the protocol number.


Previous: Reference: getpriority Perl in a Nutshell Next: Reference: getprotobynumber
Reference: getpriority Book Index Reference: getprotobynumber

Library Navigation Links

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