reference/sockets/functions/socket-close.xml
14dc7c47365f2b71f6c907a5ba5bccf42534d5a9
...
...
@@ -1,21 +1,20 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.socket-close">
3
+
<refentry xml:id="function.socket-close" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>socket_close</refname>
6
-
<refpurpose>Closes a socket resource</refpurpose>
6
+
<refpurpose>Closes a <classname>Socket</classname> instance</refpurpose>
7
7
</refnamediv>
8
8
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>void</type><methodname>socket_close</methodname>
13
-
<methodparam><type>resource</type><parameter>socket</parameter></methodparam>
13
+
<methodparam><type>Socket</type><parameter>socket</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
-
<function>socket_close</function> closes the socket resource
17
-
given by <parameter>socket</parameter>. This function is specific to sockets
18
-
and cannot be used on any other type of resources.
16
+
<function>socket_close</function> closes the <classname>Socket</classname> instance
17
+
given by <parameter>socket</parameter>.
19
18
</para>
20
19
</refsect1>
21
20

...
...
@@ -27,7 +26,7 @@
27
26
<term><parameter>socket</parameter></term>
28
27
<listitem>
29
28
<para>
30
-
A valid socket resource created with <function>socket_create</function>
29
+
A <classname>Socket</classname> instance created with <function>socket_create</function>
31
30
or <function>socket_accept</function>.
32
31
</para>
33
32
</listitem>
...
...
@@ -43,6 +42,23 @@
43
42
</para>
44
43
</refsect1>
45
44

45
+
<refsect1 role="changelog">
46
+
&reftitle.changelog;
47
+
<informaltable>
48
+
<tgroup cols="2">
49
+
<thead>
50
+
<row>
51
+
<entry>&Version;</entry>
52
+
<entry>&Description;</entry>
53
+
</row>
54
+
</thead>
55
+
<tbody>
56
+
&sockets.changelog.socket-param;
57
+
</tbody>
58
+
</tgroup>
59
+
</informaltable>
60
+
</refsect1>
61
+

46
62
<refsect1 role="seealso">
47
63
&reftitle.seealso;
48
64
<para>
...
...
@@ -56,7 +72,6 @@
56
72
</refsect1>
57
73

58
74
</refentry>
59
-

60
75
<!-- Keep this comment at the end of the file
61
76
Local variables:
62
77
mode: sgml
63
78