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…')
 
 
(2 intermediate revisions by the same user not shown)
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|number|delta}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
Line 12: Line 12:
 
* [[parent::ServerObject]]
 
* [[parent::ServerObject]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Connect to a server.}}
+
{{#set:Description=Check for ping messages.}}
 
== Other Languages ==
 
== Other Languages ==
{{i18n|ServerObject:init}}
+
{{i18n|ServerObject:checkPing}}

Latest revision as of 01:52, 20 November 2010

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

Function

Synopsis

server:checkPing( delta )

Arguments

number delta
Some description goes here.

Returns

Nothing.

See Also

Other Languages