Difference between revisions of "ServerObject:update"

(Created page with 'Connect to a server. == Function == === Synopsis === <source lang="lua"> clientobject:init( sockettype ) </source> === Arguments === {{param|SocketType|string|"tcp", "udp" or use…')
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Connect to a server.
+
Update the server. Checks for incoming messages, and classifies as ping, connect, disconnect and raw data, Also checks ping (since 0.6)
 +
 
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
clientobject:init( sockettype )
+
server:update(dt)
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|SocketType|string|"tcp", "udp" or user-defined.}}
+
{{param|number|dt|Delta-time.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
Line 12: Line 13:
 
* [[parent::ServerObject]]
 
* [[parent::ServerObject]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Connect to a server.}}
+
{{#set:Description=Update the server.}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|ServerObject:init}}
 
{{i18n|ServerObject:init}}

Latest revision as of 01:53, 20 November 2010

Update the server. Checks for incoming messages, and classifies as ping, connect, disconnect and raw data, Also checks ping (since 0.6)

Function

Synopsis

server:update(dt)

Arguments

number dt
Delta-time.

Returns

Nothing.

See Also

Other Languages