cvs: /phpdoc/functions network.sgml
| From: | Evan Klinger | Date: | Tue, 23 Nov 1999 00:38:23 +0000 |
| Subject: | cvs: /phpdoc/functions network.sgml | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-12956@lists.php.net to get a copy of this message | ||
evan Mon Nov 22 19:38:23 1999 EDT
Modified files:
/phpdoc/functions network.sgml
Log:
Document getprotoby{name,number} and getservby{name,port}.
Index: phpdoc/functions/network.sgml
diff -u phpdoc/functions/network.sgml:1.5 phpdoc/functions/network.sgml:1.6
--- phpdoc/functions/network.sgml:1.5 Wed Oct 20 18:41:42 1999
+++ phpdoc/functions/network.sgml Mon Nov 22 19:37:52 1999
@@ -277,6 +277,96 @@
</refsect1>
</refentry>
+ <refentry id="function.getprotobyname">
+ <refnamediv>
+ <refname>getprotobyname</refname>
+ <refpurpose>get protocol number associated with protocol name</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcdef>int <function>getprotobyname</function></funcdef>
+ <paramdef>string <parameter>name</parameter></paramdef>
+ </funcsynopsis>
+
+ <para>
+ <function>getprotobyname</function> returns the protocol number
+ associated with the protocol <parameter>name</parameter> as per
+ /etc/protocols.
+
+ See also <function>getprotobynumber</function>.</para>
+ </refsect1>
+ </refentry>
+
+ <refentry id="function.getprotobynumber">
+ <refnamediv>
+ <refname>getprotobynumber</refname>
+ <refpurpose>get protocol name associated with protocol number</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcdef>string <function>getprotobynumber</function></funcdef>
+ <paramdef>int <parameter>number</parameter></paramdef>
+ </funcsynopsis>
+
+ <para>
+ <function>getprotobynumber</function> returns the protocol name
+ associated with protocol <parameter>number</parameter> as per
+ /etc/protocols.
+
+ See also <function>getprotobyname</function>.</para>
+ </refsect1>
+ </refentry>
+
+ <refentry id="function.getservbyname">
+ <refnamediv>
+ <refname>getservbyname</refname>
+ <refpurpose>get port number associated with an Internet service and
protocol</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcdef>int <function>getservbyname</function></funcdef>
+ <paramdef>string <parameter>service</parameter></paramdef>
+ <paramdef>string <parameter>protocol</parameter></paramdef>
+ </funcsynopsis>
+
+ <para>
+ <function>getservbyname</function> returns the Internet port which
+ corresponds to <parameter>service</parameter> for the specified
+ <parameter>protocol</parameter> as per /etc/services.
+ <parameter>protocol</parameter> is either <literal>tcp</literal> or
+ <literal>udp</literal>.
+
+ See also <function>getservbyport</function>.</para>
+ </refsect1>
+ </refentry>
+
+ <refentry id="function.getservbyport">
+ <refnamediv>
+ <refname>getservbyport</refname>
+ <refpurpose>get Internet service which corresponds to port and
protocol</refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcdef>string <function>getservbyport</function></funcdef>
+ <paramdef>int <parameter>port</parameter></paramdef>
+ <paramdef>string <parameter>protocol</parameter></paramdef>
+ </funcsynopsis>
+
+ <para>
+ <function>getservbyport</function> returns the Internet service
+ associated with <parameter>port</parameter> for the specified
+ <parameter>protocol</parameter> as per /etc/services.
+ <parameter>protocol</parameter> is either <literal>tcp</literal> or
+ <literal>udp</literal>.
+
+ See also <function>getservbyname</function>.</para>
+ </refsect1>
+ </refentry>
+
<refentry id="function.openlog">
<refnamediv>
<refname>openlog</refname>