Difference between revisions of "ServerObject:checkPing"

(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.
+
Check for ping messages. If clients are timed out, disconnect them.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
clientobject:init( sockettype )
+
server:checkPing( delta )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|SocketType|string|"tcp", "udp" or user-defined.}}
+
{{param|Delta|number}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
Line 14: Line 14:
 
{{#set:Description=Connect to a server.}}
 
{{#set:Description=Connect to a server.}}
 
== Other Languages ==
 
== Other Languages ==
{{i18n|ServerObject:init}}
+
{{i18n|ServerObject:checkPing}}

Revision as of 00:53, 20 November 2010

Check for ping messages. If clients are timed out, disconnect them.

Function

Synopsis

server:checkPing( delta )

Arguments

Delta number
Some description goes here.

Returns

Nothing.

See Also

Other Languages