You could use HTTP protocol for that. Set up an HTTP listener with
HttpListener class and handle the incoming queries. There are some nice articles about how to set up a simple HTTP server, for example:
http://www.codeproject.com/Articles/137 ... erver-in-CThe client would then just make an HTTP GET request, example:
- Code: Select all
http://[server-ip]:[port]/achievements?user=[user-name]
And the server would return the suitable data in JSON, XML or CSV format, example:
- Code: Select all
{
"user" : "LeeIzaZombie",
"awards" : [
{ "firstWin" : 1 },
{ "tenBrains" : 0 }
]
}
The client would then parse the data and display it to the user.
You can do it as a custom command, or using the Plugin API (if you want to create a GUI for it).