![]() 8.161. Net::protoent
You can access the structure fields with the methods or by importing the fields into your namespace with the :FIELDS import tag and accessing them by prepending p_ to the field name: $proto_obj->name( ) $p_name
getproto (protocol) Frontend for getprotobynumber and getprotobyname. If protocol is numeric, calls getprotobynumber; otherwise, calls getprotobyname.
getprotobyname (addr, addrtype) Returns information about the host with address addr of type addrtype.
getprotobynumber (hostname) Returns information about the host with name hostname.
getprotoent (protocol) Frontend for getprotobynumber and getprotobyname. If protocol is numeric, calls getprotobynumber; otherwise, calls getprotobyname. ![]() Copyright © 2002 O'Reilly & Associates. All rights reserved. |
|