reference/sockets/functions/socket-create-pair.xml
14dc7c47365f2b71f6c907a5ba5bccf42534d5a9
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.socket-create-pair">
3
+
<refentry xml:id="function.socket-create-pair" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>socket_create_pair</refname>
6
6
<refpurpose>Creates a pair of indistinguishable sockets and stores them in an array</refpurpose>
...
...
@@ -13,11 +13,11 @@
13
13
<methodparam><type>int</type><parameter>domain</parameter></methodparam>
14
14
<methodparam><type>int</type><parameter>type</parameter></methodparam>
15
15
<methodparam><type>int</type><parameter>protocol</parameter></methodparam>
16
-
<methodparam><type>array</type><parameter role="reference">fd</parameter></methodparam>
16
+
<methodparam><type>array</type><parameter role="reference">pair</parameter></methodparam>
17
17
</methodsynopsis>
18
18
<para>
19
19
<function>socket_create_pair</function> creates two connected and
20
-
indistinguishable sockets, and stores them in <parameter>fd</parameter>.
20
+
indistinguishable sockets, and stores them in <parameter>pair</parameter>.
21
21
This function is commonly used in IPC (InterProcess Communication).
22
22
</para>
23
23
</refsect1>
...
...
@@ -65,10 +65,10 @@
65
65
</listitem>
66
66
</varlistentry>
67
67
<varlistentry>
68
-
<term><parameter>fd</parameter></term>
68
+
<term><parameter>pair</parameter></term>
69
69
<listitem>
70
70
<para>
71
-
Reference to an array in which the two socket resources will be inserted.
71
+
Reference to an array in which the two <classname>Socket</classname> instances will be inserted.
72
72
</para>
73
73
</listitem>
74
74
</varlistentry>
...
...
@@ -85,26 +85,25 @@
85
85

86
86
<refsect1 role="changelog">
87
87
&reftitle.changelog;
88
-
<para>
89
-
<informaltable>
90
-
<tgroup cols="2">
91
-
<thead>
92
-
<row>
93
-
<entry>&Version;</entry>
94
-
<entry>&Description;</entry>
95
-
</row>
96
-
</thead>
97
-
<tbody>
98
-
<row>
99
-
<entry>5.3.0</entry>
100
-
<entry>
101
-
This function is now available on Windows platforms.
102
-
</entry>
103
-
</row>
104
-
</tbody>
105
-
</tgroup>
106
-
</informaltable>
107
-
</para>
88
+
<informaltable>
89
+
<tgroup cols="2">
90
+
<thead>
91
+
<row>
92
+
<entry>&Version;</entry>
93
+
<entry>&Description;</entry>
94
+
</row>
95
+
</thead>
96
+
<tbody>
97
+
<row>
98
+
<entry>8.0.0</entry>
99
+
<entry>
100
+
<parameter>pair</parameter> is a reference to an array of <classname>Socket</classname> instances now;
101
+
previously, it was a reference to an array of <type>resource</type>s.
102
+
</entry>
103
+
</row>
104
+
</tbody>
105
+
</tgroup>
106
+
</informaltable>
108
107
</refsect1>
109
108

110
109
<refsect1 role="examples">
...
...
@@ -199,7 +198,6 @@ if ($pid == -1) {
199
198
</para>
200
199
</refsect1>
201
200
</refentry>
202
-

203
201
<!-- Keep this comment at the end of the file
204
202
Local variables:
205
203
mode: sgml
206
204