vibe-rcon 1.1.0

Source RCON Protocol implementation for vibe.d


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

vibe.rcon

This is an implementation of the source RCON protocol, used to communicate remotely with game servers.

You can read about the source RCON protocol on the developer wiki.

Installing

You can install this package using dub:

dependency "vibe-rcon" version="~>1.0"
"dependencies": {
    "vibe-rcon": "~>1.0",
}

Usage

import vibe.rcon;

auto client = new RCONClient("119.15.96.156", 27041);

// You can use standard source RCON authentication
bool success = client.authenticate("<rcon password>");

// You can send rcon commands
string response = client.exec("status");

// You can also easily retrieve console variables (convars)
string value = client.readConVar("sv_password");

// For more direct control you can directly send and receive RCON packets
client.send(RCONPacket(2, RCONPacket.Type.AUTH_RESPONSE, "hi"));
RCONPacket response = client.receive();

// Or you can let the client handle the packet ID for you
int id = client.send(RCONPacket.Type.AUTH_RESPONSE, "hi");
RCONPacket response = client.receive();
assert(response.id == id);

License

This project is distributed under the MIT license.

Authors:
  • Benjamin Schaaf
Dependencies:
vibe-core
Versions:
1.1.0 2018-Apr-01
1.0.0 2017-Oct-04
~master 2018-Apr-01
Show all 3 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 24 downloads total

Score:
0.5
Short URL:
vibe-rcon.dub.pm