name A pointer to a string containing the name of the service about which information is required. proto A pointer to a string containing the name of the protocol (TCP or UDP) for which to search.