torben Wed Feb 13 16:53:11 2002 EDT
Modified files:
/phpdoc/en/functions network.xml
Log:
Fixed fsockopen()'s argument list & explanation--it looked like 'udp://'
was intended to be part of the argument name, not the argument contents.
Index: phpdoc/en/functions/network.xml
diff -u phpdoc/en/functions/network.xml:1.54 phpdoc/en/functions/network.xml:1.55
--- phpdoc/en/functions/network.xml:1.54 Wed Feb 6 12:55:24 2002
+++ phpdoc/en/functions/network.xml Wed Feb 13 16:53:10 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.54 $ -->
+<!-- $Revision: 1.55 $ -->
<reference id="ref.network">
<title>Network Functions</title>
<titleabbrev>Network</titleabbrev>
@@ -139,7 +139,7 @@
<title>Description</title>
<methodsynopsis>
<type>int</type><methodname>fsockopen</methodname>
- <methodparam
choice="opt"><type>string</type><parameter>udp://hostname</parameter></methodparam>
+ <methodparam><type>string</type><parameter>hostname</parameter></methodparam>
<methodparam><type>int</type><parameter>port</parameter></methodparam>
<methodparam
choice="opt"><type>int</type><parameter>errno</parameter></methodparam>
<methodparam
choice="opt"><type>string</type><parameter>errstr</parameter></methodparam>
@@ -153,11 +153,12 @@
<parameter>port</parameter>. <parameter>hostname</parameter> may
in this case be either a fully qualified domain name or an IP
address. For UDP connections, you need to explicitly specify the
- protocol: <parameter>udp://hostname</parameter>. For the Unix
- domain, <parameter>hostname</parameter> will be used as the path
- to the socket, <parameter>port</parameter> must be set to 0 in
- this case. The optional <parameter>timeout</parameter> can be
- used to set a timeout in seconds for the connect system call.
+ protocol by prefixing <parameter>hostname</parameter> with
+ '<literal>udp://</literal>'. For the Unix domain,
+ <parameter>hostname</parameter> will be used as the path to the
+ socket, <parameter>port</parameter> must be set to 0 in this
+ case. The optional <parameter>timeout</parameter> can be used to
+ set a timeout in seconds for the connect system call.
</para>
<para>
<function>fsockopen</function> returns a file pointer which may
@@ -171,13 +172,13 @@
<parameter>errno</parameter> and <parameter>errstr</parameter>
arguments are present they will be set to indicate the actual
system level error that occurred on the system-level
- <literal>connect()</literal> call. If the returned errno is 0 and
- the function returned &false;, it is an indication that the error
- occurred before the <literal>connect()</literal> call. This is
- most likely due to a problem initializing the socket. Note that
- the <parameter>errno</parameter> and
- <parameter>errstr</parameter> arguments must be passed by
- reference.
+ <literal>connect()</literal> call. If the returned errno is
+ <literal>0</literal> and the function returned &false;, it is an
+ indication that the error occurred before the
+ <literal>connect()</literal> call. This is most likely due to a
+ problem initializing the socket. Note that the
+ <parameter>errno</parameter> and <parameter>errstr</parameter>
+ arguments must be passed by reference.
</para>
<para>
Depending on the environment, the Unix domain or the optional