start page | rating of books | rating of authors | reviews | copyrights

Programming Perl

Programming PerlSearch this book
Previous: 3.2.57 getpriority Chapter 3
Functions
Next: 3.2.59 getprotobynumber
 

3.2.58 getprotobyname

getprotobyname 

NAME

This function does the same thing as getprotobyname (3): it 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: 3.2.57 getpriority Programming Perl Next: 3.2.59 getprotobynumber
3.2.57 getpriority Book Index 3.2.59 getprotobynumber