Re: getservbyname
| From: | David Robley | Date: | Tue, 23 Jul 2002 00:17:00 +0000 |
| Subject: | Re: getservbyname | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108990@lists.php.net to get a copy of this message | ||
In article <20020722190354.13000.qmail@pb1.pair.com>, kondwani@cs.mun.ca
says...
> getservbyname takes in the following arguments:
>
> getservbyname(string service, string protocol);
>
> is the parameter service similar to those diefined under
> unix's /etc/services file or is there something else
> to it?
>
> Thanks in advance...
>
>
>
From the docs:
getservbyname() returns the Internet port which corresponds to service for
the specified protocol as per /etc/services. protocol is either "tcp" or
"udp" (in lowercase).
Cheers
--
David Robley
Temporary Kiwi!
Quod subigo farinam