Difference between revisions of "ServerObject:respondToServBrowser"

(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
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Connect to a server.
+
Sets if the server should respond to Server Browser requests.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
clientobject:init( sockettype )
+
server:respondToServBrowser(active, info)
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|SocketType|string|"tcp", "udp" or user-defined.}}
+
{{param|boolean|active|Should server respond}}
 +
{{param|table|serverName| A table containing the server name and version as named keys}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
Line 12: Line 13:
 
* [[parent::ServerObject]]
 
* [[parent::ServerObject]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Connect to a server.}}
+
{{#set:Description=Dis/Allow Server Browser responses.}}
 
== Other Languages ==
 
== Other Languages ==
{{i18n|ServerObject:init}}
+
{{i18n|ServerObject:respondToServBrowser}}

Latest revision as of 01:18, 20 November 2010

Sets if the server should respond to Server Browser requests.

Function

Synopsis

server:respondToServBrowser(active, info)

Arguments

boolean active
Should server respond
table serverName
A table containing the server name and version as named keys

Returns

Nothing.

See Also

Other Languages