reference/stream/functions/stream-socket-get-name.xml
a1702b5d45ad950c5f7a077878378a37851a2df6
...
...
@@ -9,9 +9,9 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>string</type><methodname>stream_socket_get_name</methodname>
13
-
<methodparam><type>resource</type><parameter>handle</parameter></methodparam>
14
-
<methodparam><type>bool</type><parameter>want_peer</parameter></methodparam>
12
+
<type class="union"><type>string</type><type>false</type></type><methodname>stream_socket_get_name</methodname>
13
+
<methodparam><type>resource</type><parameter>socket</parameter></methodparam>
14
+
<methodparam><type>bool</type><parameter>remote</parameter></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
Returns the local or remote name of a given socket connection.
...
...
@@ -23,7 +23,7 @@
23
23
<para>
24
24
<variablelist>
25
25
<varlistentry>
26
-
<term><parameter>handle</parameter></term>
26
+
<term><parameter>socket</parameter></term>
27
27
<listitem>
28
28
<para>
29
29
The socket to get the name of.
...
...
@@ -31,7 +31,7 @@
31
31
</listitem>
32
32
</varlistentry>
33
33
<varlistentry>
34
-
<term><parameter>want_peer</parameter></term>
34
+
<term><parameter>remote</parameter></term>
35
35
<listitem>
36
36
<para>
37
37
If set to &true; the <literal>remote</literal> socket name will be returned, if set
...
...
@@ -46,7 +46,7 @@
46
46
<refsect1 role="returnvalues">
47
47
&reftitle.returnvalues;
48
48
<para>
49
-
The name of the socket.
49
+
The name of the socket,&return.falseforfailure;.
50
50
</para>
51
51
</refsect1>
52
52

...
...
@@ -59,7 +59,6 @@
59
59
</para>
60
60
</refsect1>
61
61
</refentry>
62
-

63
62
<!-- Keep this comment at the end of the file
64
63
Local variables:
65
64
mode: sgml
66
65