Source compatible RCON implementation in Elixir
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
James f276296078
v0.4.0
1 month ago
lib refactor, add dialyxir, conn wide multi flag 3 months ago
test mix format 3 months ago
.formatter.exs mix format 3 months ago
.gitignore Initial commit 3 years ago
.travis.yml Fix travis config 1 year ago
LICENSE Change license filename 1 year ago
README.md v0.4.0 1 month ago
mix.exs v0.4.0 1 month ago
mix.lock Bump ex_doc from 0.22.0 to 0.22.1 (#5) 1 month ago

README.md

Build Status Hex.pm Hex Docs

RCON

Implementation of the Source RCON Protocol.
Documentation hosted on hexdocs.

Installation

Add rcon to your list of dependencies in mix.exs:

def deps do
  [{:rcon, "~> 0.4.0"}]
end

Features

  • Source compatible (should work with CS:GO, Minecraft, etc)
  • Supports multi-packet responses
  • Handles messages with ID counter
  • Shouldn’t blow up in your face

Usage

{:ok, conn} = RCON.Client.connect("127.0.0.1", 27084)
{:ok, conn, true} = RCON.Client.authenticate(conn, "password")
{:ok, _conn, result} = RCON.Client.exec(conn, "status")

IO.inspect result