reference/sockets/functions/socket-send.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-send">
3
+
<refentry xml:id="function.socket-send" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>socket_send</refname>
6
6
<refpurpose>Sends data to a connected socket</refpurpose>
...
...
@@ -9,16 +9,16 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>int</type><methodname>socket_send</methodname>
13
-
<methodparam><type>resource</type><parameter>socket</parameter></methodparam>
14
-
<methodparam><type>string</type><parameter>buf</parameter></methodparam>
15
-
<methodparam><type>int</type><parameter>len</parameter></methodparam>
12
+
<type class="union"><type>int</type><type>false</type></type><methodname>socket_send</methodname>
13
+
<methodparam><type>Socket</type><parameter>socket</parameter></methodparam>
14
+
<methodparam><type>string</type><parameter>data</parameter></methodparam>
15
+
<methodparam><type>int</type><parameter>length</parameter></methodparam>
16
16
<methodparam><type>int</type><parameter>flags</parameter></methodparam>
17
17
</methodsynopsis>
18
18
<para>
19
19
The function <function>socket_send</function> sends
20
-
<parameter>len</parameter> bytes to the socket
21
-
<parameter>socket</parameter> from <parameter>buf</parameter>.
20
+
<parameter>length</parameter> bytes to the socket
21
+
<parameter>socket</parameter> from <parameter>data</parameter>.
22
22
</para>
23
23
</refsect1>
24
24

...
...
@@ -30,13 +30,13 @@
30
30
<term><parameter>socket</parameter></term>
31
31
<listitem>
32
32
<para>
33
-
A valid socket resource created with <function>socket_create</function>
33
+
A <classname>Socket</classname> instance created with <function>socket_create</function>
34
34
or <function>socket_accept</function>.
35
35
</para>
36
36
</listitem>
37
37
</varlistentry>
38
38
<varlistentry>
39
-
<term><parameter>buf</parameter></term>
39
+
<term><parameter>data</parameter></term>
40
40
<listitem>
41
41
<para>
42
42
A buffer containing the data that will be sent to the remote host.
...
...
@@ -44,11 +44,11 @@
44
44
</listitem>
45
45
</varlistentry>
46
46
<varlistentry>
47
-
<term><parameter>len</parameter></term>
47
+
<term><parameter>length</parameter></term>
48
48
<listitem>
49
49
<para>
50
50
The number of bytes that will be sent to the remote host from
51
-
<parameter>buf</parameter>.
51
+
<parameter>data</parameter>.
52
52
</para>
53
53
</listitem>
54
54
</varlistentry>
...
...
@@ -106,6 +106,23 @@
106
106
</para>
107
107
</refsect1>
108
108

109
+
<refsect1 role="changelog">
110
+
&reftitle.changelog;
111
+
<informaltable>
112
+
<tgroup cols="2">
113
+
<thead>
114
+
<row>
115
+
<entry>&Version;</entry>
116
+
<entry>&Description;</entry>
117
+
</row>
118
+
</thead>
119
+
<tbody>
120
+
&sockets.changelog.socket-param;
121
+
</tbody>
122
+
</tgroup>
123
+
</informaltable>
124
+
</refsect1>
125
+

109
126
<refsect1 role="seealso">
110
127
&reftitle.seealso;
111
128
<para>
...
...
@@ -116,7 +133,6 @@
116
133
</refsect1>
117
134

118
135
</refentry>
119
-

120
136
<!-- Keep this comment at the end of the file
121
137
Local variables:
122
138
mode: sgml
123
139