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

Revision as of 01:17, 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