Implementation of the Source RCON Protocol.
Documentation hosted on hexdocs.
Add rcon
to your list of dependencies in mix.exs
:
def deps do
[{:rcon, "~> 0.4.0"}]
end
- 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
{: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