Menu

Code

Neon

lgsl_protocol.php

lgsl_query_live

That function querying a server data

lgsl_query_live(query_protocol (String), ip (String), connection_port (Integer), query_port (Integer), software_port (Integer), request (Integer));

query_protocol - one of protocol which can be picked from variable $lgsl_type_list (to be sure what protocol are you needed - visit Supported games page)

ip - ip or domain name of game server

connection_port - server's connection port

query_port - server query port

software_port - server query port for softwares (for some old games, otherwise sets to 0)

request - string which can contains: s - server data, e - extra data (settings, etc.), p - players data

Example:

lgsl_query_live('urbanterror', '176.9.28.206', 27971, 27971, 0, "sep");

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.