![]() 8.162. Net::servent
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 s_ to the field name: $serv_obj->name( ) $s_name
getserv(service) Frontend for getservbyport and getservbyname. If service is numeric, calls getservbyport; otherwise, calls getservbyname.
getservbyname(name) Returns information for the Internet service with protocol name name.
getservbyport(port) Returns information for the Internet service with port number port.
getservent Returns entries from the database of Internet services. ![]() Copyright © 2002 O'Reilly & Associates. All rights reserved. |
|