Приглашаем посетить
Право (law.niv.ru)

[Chapter 3] 3.2.53 getnetent

PreviousChapter 3
Functions
Next
 

3.2.53 getnetent

getnetent
setnetent STAYOPEN
endnetent

These functions do the same thing as their like-named system library routines - see getnetent(3). They iterate through your /etc/networks file, or moral equivalent. The return value in list context is:

($name, $aliases, $addrtype, $net)

In scalar context, getnetent returns only the network name.


PreviousHomeNext
3.2.52 getnetbynameBook Index3.2.54 getpeername