Difference between revisions of "ServerObject: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…')
 
(Undo revision 9974 by Helvecta (talk))
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Connect to a server.
+
Send data to client(s).
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
clientobject:init( sockettype )
+
server:send(data, recipient)
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|SocketType|string|"tcp", "udp" or user-defined.}}
+
{{param|userdata|data|The data to send to the client(s).}}
 +
{{param|recipient|recipient|The client who shall receive the data, If nil then sends to all client(s).}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
Line 12: Line 13:
 
* [[parent::ServerObject]]
 
* [[parent::ServerObject]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Connect to a server.}}
+
{{#set:Description=Send data to client(s).}}
 
== Other Languages ==
 
== Other Languages ==
{{i18n|ServerObject:init}}
+
{{i18n|ServerObject:send}}

Latest revision as of 02:47, 16 March 2013

Send data to client(s).

Function

Synopsis

server:send(data, recipient)

Arguments

userdata data
The data to send to the client(s).
recipient recipient
The client who shall receive the data, If nil then sends to all client(s).

Returns

Nothing.

See Also

Other Languages