2015-03-10 16:45:20 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace IW4MAdmin
|
|
|
|
|
{
|
|
|
|
|
class Heartbeat
|
|
|
|
|
{
|
|
|
|
|
public Heartbeat(Server I)
|
|
|
|
|
{
|
|
|
|
|
Handle = new Connection("http://raidmax.org/IW4M/Admin");
|
|
|
|
|
Instance = I;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Send()
|
|
|
|
|
{
|
2015-03-11 21:25:14 -04:00
|
|
|
|
String URI = String.Format("http://raidmax.org/IW4M/Admin/heartbeat.php?address={0}&name={1}&map={2}&players={3}", Instance.getPort().ToString(), Instance.getName(), Instance.getMap(), Instance.getClientNum().ToString() + '/' + Instance.getMaxClients().ToString());
|
2015-03-10 16:45:20 -04:00
|
|
|
|
Handle.Request(URI);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Connection Handle;
|
|
|
|
|
private Server Instance;
|
|
|
|
|
}
|
|
|
|
|
}
|