server.isHosting: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added description; fleshed out the rest of the page)
m (Added more descriptive text)
Line 3: Line 3:
|version=1.12
|version=1.12
|description=The variable ''server.isHosting'' returns the hosting status of the local machine.
|description=The variable ''server.isHosting'' returns the hosting status of the local machine.
 
<br/>
All MapTool instances ''must'' have a server running of some type.  There are two choices: either a ''personal'' server (meaning that it is not listening for incoming connections), and a true ''server'' (meaning that incoming connections will be accepted, assuming that there are no other constraints like firewall settings).
|usage=
|usage=
<syntaxhighlight lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>

Revision as of 05:13, 6 June 2023

server.isHosting() Function

Introduced in version 1.12
The variable server.isHosting returns the hosting status of the local machine.


All MapTool instances must have a server running of some type. There are two choices: either a personal server (meaning that it is not listening for incoming connections), and a true server (meaning that incoming connections will be accepted, assuming that there are no other constraints like firewall settings).

Usage

server.isHosting()

Returns true if the local machine is hosting a MapTool server and false otherwise.


See Also