by Tuxklok » Sat Oct 08, 2011 7:05 pm
You can simply make a tcp connection to the mpserver on (usually) port 5001. It will then dump a list of mp users with names, positions, altitudes, etc down the line. It is also possible to use same mechanism the mpmap[s] use via a http request if you don't have access to raw sockets in your hosting environment, but because I don't know how the mpmap hosts would feel about people using/abusing their framework/hosting, I'll leave that as an exercise to any interested parties. The mpmap source is of course, completely available, if you want to see how it all works.
May also be possible to do an http request directly to the mpserver on port 5001 and get a usable response that way, but I don't think I ever tried, and results may very...
cheers
The Austria Scenery Project -
more infofg-scenery-tools -
gitorious |
videosfgcomgui - Open source, cross platform, gui front end for fgcom.
more infoMore random musings and doings can be found on my personal site. (work in progress)