MANUAL for GMnet ENGINE and GMnet CORE

tme_startLANsearch(port,[gamefilter])

Description

Detailed information in Tutorial - Bonus 3 - A LAN lobby.

Search in the LAN for servers on the port specified. You can now use htme_getLANServers() to get a list of LAN servers. This list will be filled with servers over time. Run this comamnd again to empty it and resend the broadcast (to refresh the list).

Format of the list returned by **htme_getLANServers()**:
ds_list:
 [0...] => ds_map:
           [ip]    => string
           [port]  => real
           [data1] => string
           [data2] => string
           [data3] => string
           [data4] => string
           [data5] => string
           [data6] => string
           [data7] => string
           [data8] => string

Arguments

Name type description
limit real The port to scan on
[gamefilter] string Only list servers that match this excact string for their first data string (the gamename). Can be EMPTY STRING if you don't want to filter

Returns

Nothing


Back to index.


Creative Commons License

All pages in this manual are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Manuals / GMnet ENGINE Manual

GameMaker: Studio is owned by YoYoGames. GMnet is not affiliated with YoYoGames.
The GMnet logos use icons from Entypo (http://entypo.com/) and Open Iconic (https://useiconic.com/open/). They are licensed under CC BY-SA 4.0.