Add <tip> regarding use of IPv6 numerical addresses

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@123119 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sara Golemon 2003-04-11 05:44:46 +00:00
parent 4b66a029f8
commit a57f482b31
3 changed files with 21 additions and 3 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/network.xml, last change in rev 1.2 -->
<refentry id="function.fsockopen">
<refnamediv>
@ -125,6 +125,12 @@ if (!$fp) {
a link for the socket until it actually needs to send or receive data.
</simpara>
</warning>
<tip>
<simpara>
When specifying a numerical IPv6 address (i.e. fe80::1) you must enclose
the IP in square brackets. <literal>fsockopen("tcp://[fe80::1]", 80)</literal>.
</simpara>
</tip>
<note>
<para>The timeout parameter was introduced in PHP 3.0.9 and
UDP support was added in PHP 4.

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- $Revision: 1.2 $ -->
<refentry id="function.stream-socket-client">
<refnamediv>
<refname>stream_socket_client</refname>
@ -124,6 +124,12 @@ if (!$fp) {
a link for the socket until it actually needs to send or receive data.
</simpara>
</warning>
<tip>
<simpara>
When specifying a numerical IPv6 address (i.e. fe80::1) you must enclose
the IP in square brackets. <literal>stream_socket_client("tcp://[fe80::1]:80")</literal>.
</simpara>
</tip>
See also <function>stream_socket_server</function>,
<function>stream_set_blocking</function>,
<function>stream_set_timeout</function>,

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- $Revision: 1.2 $ -->
<refentry id="function.stream-socket-server">
<refnamediv>
<refname>stream_socket_server</refname>
@ -102,6 +102,12 @@ if (!$socket) {
]]>
</programlisting>
</example>
<tip>
<simpara>
When specifying a numerical IPv6 address (i.e. fe80::1) you must enclose
the IP in square brackets. <literal>stream_socket_server("tcp://[fe80::1]:80")</literal>.
</simpara>
</tip>
See also <function>stream_socket_client</function>,
<function>stream_set_blocking</function>,
<function>stream_set_timeout</function>,