reference/sockets/functions/socket-connect.xml
e58f2f64751dc0d9e0da953bac8003469f923af0
...
...
@@ -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-connect">
3
+
<refentry xml:id="function.socket-connect" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>socket_connect</refname>
6
6
<refpurpose>Initiates a connection on a socket</refpurpose>
...
...
@@ -10,14 +10,14 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>bool</type><methodname>socket_connect</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
-
<methodparam choice="opt"><type>int</type><parameter>port</parameter><initializer>0</initializer></methodparam>
15
+
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>port</parameter><initializer>&null;</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
-
Initiate a connection to <parameter>address</parameter> using the socket resource
19
-
<parameter>socket</parameter>, which must be a valid socket
20
-
resource created with <function>socket_create</function>.
18
+
Initiate a connection to <parameter>address</parameter> using the <classname>Socket</classname> instance
19
+
<parameter>socket</parameter>, which must be <classname>Socket</classname>
20
+
instance created with <function>socket_create</function>.
21
21
</para>
22
22
</refsect1>
23
23

...
...
@@ -29,6 +29,8 @@
29
29
<term><parameter>socket</parameter></term>
30
30
<listitem>
31
31
<para>
32
+
A <classname>Socket</classname> instance created with
33
+
<function>socket_create</function>.
32
34
</para>
33
35
</listitem>
34
36
</varlistentry>
...
...
@@ -77,6 +79,29 @@
77
79
</note>
78
80
</refsect1>
79
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
+
<row>
95
+
<entry>8.0.0</entry>
96
+
<entry>
97
+
<parameter>port</parameter> is nullable now.
98
+
</entry>
99
+
</row>
100
+
</tbody>
101
+
</tgroup>
102
+
</informaltable>
103
+
</refsect1>
104
+

80
105
<refsect1 role="seealso">
81
106
&reftitle.seealso;
82
107
<para>
...
...
@@ -91,7 +116,6 @@
91
116
</refsect1>
92
117

93
118
</refentry>
94
-

95
119
<!-- Keep this comment at the end of the file
96
120
Local variables:
97
121
mode: sgml
98
122