Difference between revisions of "ClientObject:send"

(Created page with 'Connect to a server. == Function == === Synopsis === <source lang="lua"> clientobject:init( sockettype ) </source> === Arguments === {{param|SocketType|string|"tcp", "udp" or use…')
 
(Correcting the function description)
 
Line 1: Line 1:
Connect to a server.
+
Send data to a server.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
clientobject:init( sockettype )
+
clientobject:send( data )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|SocketType|string|"tcp", "udp" or user-defined.}}
+
{{param|string|data|The updatable data to send to the server. If you want to update a table, then use lube.bin:pack() before sending.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
Line 12: Line 12:
 
* [[parent::ClientObject]]
 
* [[parent::ClientObject]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Connect to a server.}}
+
{{#set:Description=Send data to a server.}}
 
== Other Languages ==
 
== Other Languages ==
{{i18n|ClientObject:init}}
+
{{i18n|ClientObject:send}}

Latest revision as of 22:18, 6 March 2011

Send data to a server.

Function

Synopsis

clientobject:send( data )

Arguments

string data
The updatable data to send to the server. If you want to update a table, then use lube.bin:pack() before sending.

Returns

Nothing.

See Also

Other Languages