Langley
09-15-2008, 02:45 PM
Do you offer some sort of web service or XML file we can consume that displays our real-time channels and users? We will be looking to build our own viewer and we will need this functionality.
Thanks,
Langley
Turbo123
09-15-2008, 04:38 PM
They said they would look into doing web things after the initial release i believe. I am also looking forward to the addons we can make. If Mohawk does not make them i look forward to starting up a community with a group of coders/programers/ect!
avial
09-15-2008, 07:20 PM
There is a query function built into the server that will allow you to do just what you want. There will be documentation for it once the program is released.
jbiloh
09-15-2008, 11:19 PM
Just to add:
The query is in fact already active but we are considering adding additional data to the function. More on this very soon.
Daniel
09-17-2008, 12:43 AM
AFAIK You can query it using a TCP socket/connection.. shouldn't be too hard to do with php/asp.net/whatever
1. Requested feature: A server status facility is now available to non-Mohawk applications. Use is as follows:
a. The program makes a TCP connection to port 9153 at the server’s IP address. Where 9150 (for the test instance) is the connection port, 9151 the dataport, 9152 the FTP port, etc.
b. The program sends the ASCII character string “status” followed by a CR/LF or just an LF. The “status” command (minus the quotation marks) is letter case independent. This transmission must take place within 15 seconds after connection or the Mohawk server will disconnect. Anything received other than “status” will be ignored and the user disconnected.
c. The program then reads an ASCII reply string from port 9153 which ends with a CR/LF sequence..
d. The Mohawk server disconnects immediately after sending the reply string.
The reply string has the following format:
status,<code>,<value>,...
where the <code>,<value> pairs are as follows, and can appear in any order:
U,hhh:mm Server uptime in hours and minutes
C,nnn Number of currently connected users
M,nnn Maximum allowable connected users
V,version Server's current version string in quotes
For example, a typical reply might be:
status,U,17:15,C,5,M,8,V,"1.0.5 Build 1999"
This can be easily tested using Windows’ telnet via run:
telnet <ipaddr> 9153
and entering status immediately after connecting.
The use of this feature has absolutely no impact on normal Mohawk operation, client or server.
Langley
09-17-2008, 05:40 AM
Thanks for the quick reply lads. Keep up the good work.
TCAdmin
09-17-2008, 01:03 PM
Status output looks like this:
status
U,0013:33
C,000
M,050
V,1.0.0 Build 719 [Beta]
G,1
N,R,"Balance Servers, Inc."
N,C,1,Lobby
N,C,1,"Admins Only"
N,C,1,"Call of Duty 4"
N,C,2,Hardcore
N,C,2,"COD4 Vanilla"
N,C,2,"TWL Matches"
N,C,1,AFK
N,C,1,"Moon Meetings"
N,C,1,"BF 1942"
N,C,2,CQ
N,C,2,"Secret Weapons-RTR"
N,C,1,"BF 2142"
N,C,2,"West Tampa"
N,C,2,Titan
N,C,2,"West CQ"
N,C,1,BF2
N,C,2,"Mostly Oman"
N,C,2,Karkand
N,C,2,Jalalabad
N,C,2,"SF - Mostly Warlord"
N,C,1,"Steam Games"
N,C,2,"CS Source"
N,C,2,"DOD Source"
Z
Night
07-09-2009, 04:35 AM
hey, can someone provide a complete script of this or at least step-by-step on how to write? :D i'm a sucky coder but i would most certainly need something like this.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.