astutecat / elixir-rcon

Source compatible RCON implementation in Elixir

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Source compatible RCON implementation in Elixir

License:MIT License


Languages

Language:Elixir 100.0%