February 2012
Intermediate to advanced
1184 pages
37h 17m
English
getprotoent
setprotoent STAYOPEN
endprotoentThese functions iterate through the /etc/protocols file. In list context, the
return value from getprotoent
is:
# 0 1 2 ($name, $aliases, $protocol_number) = getprotoent();
When called in scalar context, getprotoent returns only the protocol name.
The Net::proto module supports a by-name interface to this function. See
getprotent(3).
Read now
Unlock full access