reference/sockets/functions/socket-bind.xml
70a1ee5310f20d51d17029cf18cfa21ece63b942
...
...
@@ -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-bind">
3
+
<refentry xml:id="function.socket-bind" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>socket_bind</refname>
6
6
<refpurpose>Binds a name to a socket</refpurpose>
...
...
@@ -10,14 +10,14 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>bool</type><methodname>socket_bind</methodname>
13
-
<methodparam><type>resource</type><parameter>socket</parameter></methodparam>
13
+
<methodparam><type>Socket</type><parameter>socket</parameter></methodparam>
14
14
<methodparam><type>string</type><parameter>address</parameter></methodparam>
15
15
<methodparam choice="opt"><type>int</type><parameter>port</parameter><initializer>0</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
18
Binds the name given in <parameter>address</parameter> to the socket
19
19
described by <parameter>socket</parameter>. This has to be done before
20
-
a connection is be established using <function>socket_connect</function>
20
+
a connection is established using <function>socket_connect</function>
21
21
or <function>socket_listen</function>.
22
22
</para>
23
23
</refsect1>
...
...
@@ -30,7 +30,7 @@
30
30
<term><parameter>socket</parameter></term>
31
31
<listitem>
32
32
<para>
33
-
A valid socket resource created with <function>socket_create</function>.
33
+
A <classname>Socket</classname> instance created with <function>socket_create</function>.
34
34
</para>
35
35
</listitem>
36
36
</varlistentry>
...
...
@@ -75,6 +75,23 @@
75
75
</para>
76
76
</refsect1>
77
77

78
+
<refsect1 role="changelog">
79
+
&reftitle.changelog;
80
+
<informaltable>
81
+
<tgroup cols="2">
82
+
<thead>
83
+
<row>
84
+
<entry>&Version;</entry>
85
+
<entry>&Description;</entry>
86
+
</row>
87
+
</thead>
88
+
<tbody>
89
+
&sockets.changelog.socket-param;
90
+
</tbody>
91
+
</tgroup>
92
+
</informaltable>
93
+
</refsect1>
94
+
78
95
<refsect1 role="examples">
79
96
&reftitle.examples;
80
97
<para>
...
...
@@ -143,7 +160,6 @@ socket_close($sock);
143
160
</refsect1>
144
161

145
162
</refentry>
146
-

147
163
<!-- Keep this comment at the end of the file
148
164
Local variables:
149
165
mode: sgml
150
166