Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: getpriorityChapter 5
Function Reference
Next: Reference: getprotobynumber
 

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: getpriorityPerl in a NutshellNext: Reference: getprotobynumber
Reference: getpriorityBook IndexReference: getprotobynumber

Library Navigation Links

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