reference/sockets/functions/socket-getsockname.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-getsockname">
3
+
<refentry xml:id="function.socket-getsockname" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>socket_getsockname</refname>
6
6
<refpurpose>Queries the local 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_getsockname</methodname>
13
-
<methodparam><type>resource</type><parameter>socket</parameter></methodparam>
14
-
<methodparam><type>string</type><parameter role="reference">addr</parameter></methodparam>
15
-
<methodparam choice="opt"><type>int</type><parameter role="reference">port</parameter></methodparam>
13
+
<methodparam><type>Socket</type><parameter>socket</parameter></methodparam>
14
+
<methodparam><type>string</type><parameter role="reference">address</parameter></methodparam>
15
+
<methodparam choice="opt"><type>int</type><parameter role="reference">port</parameter><initializer>&null;</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<note>
18
18
<simpara>
...
...
@@ -33,13 +33,13 @@
33
33
<term><parameter>socket</parameter></term>
34
34
<listitem>
35
35
<para>
36
-
A valid socket resource created with <function>socket_create</function>
36
+
A <classname>Socket</classname> instance created with <function>socket_create</function>
37
37
or <function>socket_accept</function>.
38
38
</para>
39
39
</listitem>
40
40
</varlistentry>
41
41
<varlistentry>
42
-
<term><parameter>addr</parameter></term>
42
+
<term><parameter>address</parameter></term>
43
43
<listitem>
44
44
<para>
45
45
If the given socket is of type <constant>AF_INET</constant>
...
...
@@ -79,6 +79,23 @@
79
79
</para>
80
80
</refsect1>
81
81

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

82
99
<refsect1 role="seealso">
83
100
&reftitle.seealso;
84
101
<para>
...
...
@@ -91,7 +108,6 @@
91
108
</refsect1>
92
109

93
110
</refentry>
94
-

95
111
<!-- Keep this comment at the end of the file
96
112
Local variables:
97
113
mode: sgml
98
114