Difference between revisions of "ServerObject:Init"

(Created page with 'Connect to a server. == Function == === Synopsis === <source lang="lua"> clientobject:init( sockettype ) </source> === Arguments === {{param|SocketType|string|"tcp", "udp" or use…')
 
 
(3 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.
 
== See Also ==
 
== See Also ==
* [[parent::ClientObject]]
+
* [[parent::ServerObject]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Connect to a server.}}
+
{{#set:Description=Initializes the server.}}
 
== Other Languages ==
 
== Other Languages ==
{{i18n|ClientObject: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