Fixed fsockopen()'s argument list & explanation--it looked like 'udp://'

was intended to be part of the argument name, not the argument contents.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@70192 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Torben Wilson 2002-02-13 21:53:10 +00:00
parent 2c107905f4
commit 14fc4d4708

View file

@ -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