server.isHosting

From RPTools Wiki
Revision as of 22:14, 1 December 2023 by Kwvanderlinde (talk | contribs) (s/variable/function/)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

server.isHosting() Function

Introduced in version 1.12
The function 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