Difference between revisions of "ServerObject:startserver"

(Created page with 'Connect to a server. == Function == === Synopsis === <source lang="lua"> clientobject:init( sockettype ) </source> === Arguments === {{param|SocketType|string|"tcp", "udp" or use…')
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Connect to a server.
+
Starts and sets the server.
 +
 
 +
This is usually and normally called by server:Init
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
clientobject:init( sockettype )
+
server:startserver(port)
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|SocketType|string|"tcp", "udp" or user-defined.}}
+
{{param|number|port|The port the server should start on.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
Line 12: Line 14:
 
* [[parent::ServerObject]]
 
* [[parent::ServerObject]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Connect to a server.}}
+
{{#set:Description=Starts and sets the server.}}
 
== Other Languages ==
 
== Other Languages ==
{{i18n|ServerObject:init}}
+
{{i18n|ServerObject:startserver}}

Latest revision as of 01:53, 20 November 2010

Starts and sets the server.

This is usually and normally called by server:Init

Function

Synopsis

server:startserver(port)

Arguments

number port
The port the server should start on.

Returns

Nothing.

See Also

Other Languages