Difference between revisions of "ServerObject:setHandshake"

(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.
+
Sets a handshake for the server.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
clientobject:init( sockettype )
+
server:setHandshake(handshake)
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|SocketType|string|"tcp", "udp" or user-defined.}}
+
{{param|string|handshake|A unique string, share by client and server to identify connecting and disconnecting client(s).}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
Line 12: Line 12:
 
* [[parent::ServerObject]]
 
* [[parent::ServerObject]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Connect to a server.}}
+
{{#set:Description=Sets a handshake for the server.}}
 
== Other Languages ==
 
== Other Languages ==
{{i18n|ServerObject:init}}
+
{{i18n|ServerObject:setHandshake}}

Latest revision as of 01:10, 20 November 2010

Sets a handshake for the server.

Function

Synopsis

server:setHandshake(handshake)

Arguments

string handshake
A unique string, share by client and server to identify connecting and disconnecting client(s).

Returns

Nothing.

See Also

Other Languages