Difference between revisions of "ServerObject:Init"

 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Connect to a server.
+
Initializes the server.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
clientobject:init( sockettype )
+
server:init(port, sockettype)
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|SocketType|string|"tcp", "udp" or user-defined.}}
+
{{param|number|port|any.}}
 +
{{param|string|sockettype|"tcp", "udp" or user-defined.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
Line 12: Line 13:
 
* [[parent::ServerObject]]
 
* [[parent::ServerObject]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Connect to a server.}}
+
{{#set:Description=Initializes the server.}}
 
== Other Languages ==
 
== Other Languages ==
{{i18n|ServerObject:init}}
+
{{i18n|ServerObject:Init}}

Latest revision as of 01:50, 20 November 2010

Initializes the server.

Function

Synopsis

server:init(port, sockettype)

Arguments

number port
any.
string sockettype
"tcp", "udp" or user-defined.

Returns

Nothing.

See Also

Other Languages