This project is read-only.

Latest commit can connect to servers

Nov 27, 2013 at 3:42 AM
There's still lots to do, especially with regards to testing, but I've successfully connected to a server, have sent request, and have received responses. Go ahead and build a copy :D

To use in your project, you'll first need to install the package microsoft.bcl.async.

Between the three main assemblies there currently are, the code is contained in the TimScripts.BF4Rcon and the TimScripts.BF4Rcon.Frostbite namespaces.

There are two classes required to do something useful: RconClient and RconConnection (which you will pass to the client's ctor). The connection must have its hostname and port properties set. You can run either class's connect method and use the client to send requests.

This is pretty general, and there's no documentation available yet. If you have any questions, I would be happy to answer :D

For now, here's some code to make things easier :D
Connection = new RconConnection();
Connection.Hostname = "ip here pls";
Connection.Port = 1337;

Client = new RconClient(Connection);


IList<string> response = Client.SendRequest("serverinfo");