Fix a host of tiny mistakes

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@180651 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Aidan Lister 2005-02-24 07:38:36 +00:00
parent 2a66e049d5
commit 47615e4e24

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- $Revision: 1.9 $ -->
<refentry id="function.socket-bind">
<refnamediv>
<refname>socket_bind</refname>
@ -42,7 +42,7 @@
</para>
<para>
If the socket is of the <constant>AF_UNIX</constant> family, the
<parameter>address</parameter> is the pathname of a
<parameter>address</parameter> is the path of a
Unix-domain socket (e.g. <filename>/tmp/my.sock</filename>).
</para>
</listitem>
@ -70,14 +70,6 @@
This code may be passed to <function>socket_strerror</function> to get a
textual explanation of the error.
</para>
<note>
<para>
Windows 9x/ME compatability note:
<function>socket_last_error</function> may return an invalid error code
if trying to bind the socket to a wrong address that does not belong to
your machine.
</para>
</note>
</refsect1>
<refsect1 role="examples">
@ -96,14 +88,14 @@ $sourceips['kevin'] = '127.0.0.1';
$sourceips['madcoder'] = '127.0.0.2';
// Bind the source address
socket_bind($sock, $computerips['madcoder']);
socket_bind($sock, $sourceips['madcoder']);
// Connect to destination address
socket_connect($sock, '127.0.0.1', 80);
// Write
$request = 'GET / HTTP/1.1' . "\r\n" .
'Host: example.com' . "\r\n\";
'Host: example.com' . "\r\n\r\n";
socket_write($sock, $request);
// Close
@ -124,6 +116,14 @@ socket_close($sock);
<function>socket_connect</function>.
</para>
</note>
<note>
<para>
Windows 9x/ME compatibility note:
<function>socket_last_error</function> may return an invalid error code
if trying to bind the socket to a wrong address that does not belong to
your machine.
</para>
</note>
</refsect1>
<refsect1 role="seealso">