Difference between revisions of "ClientObject:connect"

(Created page with 'Connect to a server. == Function == === Synopsis === <source lang="lua"> clientobject:init( sockettype ) </source> === Arguments === {{param|SocketType|string|"tcp", "udp" or use…')
 
m
Line 3: Line 3:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
clientobject:init( sockettype )
+
clientobject:connect(host, port, dns)
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|SocketType|string|"tcp", "udp" or user-defined.}}
+
{{param|string|host|The host to connect to.}}
 +
{{param|number|port|The port to connect to on the host.}}
 +
{{param|string|dns|Specifies if the host is a name or an IP (If its a hostname, Then do a DNS lookup).}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
Line 14: Line 16:
 
{{#set:Description=Connect to a server.}}
 
{{#set:Description=Connect to a server.}}
 
== Other Languages ==
 
== Other Languages ==
{{i18n|ClientObject:init}}
+
{{i18n|ClientObject:connect}}

Revision as of 16:46, 20 November 2010

Connect to a server.

Function

Synopsis

clientobject:connect(host, port, dns)

Arguments

string host
The host to connect to.
number port
The port to connect to on the host.
string dns
Specifies if the host is a name or an IP (If its a hostname, Then do a DNS lookup).

Returns

Nothing.

See Also

Other Languages