For those interested, I'm currently writing a small monitoring app in C# for ccminer with tpruvots API. Here's the C# code for anyone who also wants to play with the api (very basic though, error handling is for you

).
using System;
using System.Net.Sockets;
using System.Text;
namespace ccMonitor
{
static class Api
{
public static string GetSummary(string ip = "127.0.0.1", int port = 4068)
{
return Request(ip, port, "summary");
}
public static string GetThreads(string ip = "127.0.0.1", int port = 4068)
{
return Request(ip, port, "threads");
}
public static string GetHistory(int thread = 0 , string ip = "127.0.0.1", int port = 4068)
{
return Request(ip, port, "histo|" + thread);
}
private static string Request(string ip, int port, string message)
{
string responseData;
using (TcpClient client = new TcpClient(ip, port))
using (NetworkStream stream = client.GetStream())
{
byte[] data = Encoding.ASCII.GetBytes(message);
stream.Write(data, 0, data.Length);
data = new Byte[2560];
int bytes = stream.Read(data, 0, data.Length);
responseData = Encoding.ASCII.GetString(data, 0, bytes);
}
return responseData;
}
}
}