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…')
 
m
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}}

Revision as of 01:04, 20 November 2010

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