reference/sockets/functions/socket-getpeername.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-getpeername">
3
+
<refentry xml:id="function.socket-getpeername" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>socket_getpeername</refname>
6
6
<refpurpose>Queries the remote side of the given socket which may either result in host/port or in a Unix filesystem path, dependent on its type</refpurpose>
...
...
@@ -10,9 +10,9 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>bool</type><methodname>socket_getpeername</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 role="reference">address</parameter></methodparam>
15
-
<methodparam choice="opt"><type>int</type><parameter role="reference">port</parameter></methodparam>
15
+
<methodparam choice="opt"><type>int</type><parameter role="reference">port</parameter><initializer>&null;</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
18
Queries the remote side of the given socket which may either result in
...
...
@@ -28,7 +28,7 @@
28
28
<term><parameter>socket</parameter></term>
29
29
<listitem>
30
30
<para>
31
-
A valid socket resource created with <function>socket_create</function>
31
+
A <classname>Socket</classname> instance created with <function>socket_create</function>
32
32
or <function>socket_accept</function>.
33
33
</para>
34
34
</listitem>
...
...
@@ -76,6 +76,23 @@
76
76
</para>
77
77
</refsect1>
78
78

79
+
<refsect1 role="changelog">
80
+
&reftitle.changelog;
81
+
<informaltable>
82
+
<tgroup cols="2">
83
+
<thead>
84
+
<row>
85
+
<entry>&Version;</entry>
86
+
<entry>&Description;</entry>
87
+
</row>
88
+
</thead>
89
+
<tbody>
90
+
&sockets.changelog.socket-param;
91
+
</tbody>
92
+
</tgroup>
93
+
</informaltable>
94
+
</refsect1>
95
+

79
96
<refsect1 role="notes">
80
97
&reftitle.notes;
81
98
<note>
...
...
@@ -108,7 +125,6 @@
108
125
</refsect1>
109
126

110
127
</refentry>
111
-

112
128
<!-- Keep this comment at the end of the file
113
129
Local variables:
114
130
mode: sgml
115
131