Overview
RCON protocol implementation.
Installation
cargo add rcon-tokio
or add the following line to your Cargo.toml
rcon-tokio = "0.1.0"
QuickStart
use ;
let rcon_client_config = new
// Some servers split responses. This is how long to wait between responses for the next
// Values above 200 ms not recommended.
.idle_timeout
// How long to wait before timing out a request.
// This is distinct from idle_timeout, in that it causes an error.
.io_timeout
// Maximum times to attempt server reconnect on failed command
.max_reconnect_attempts
// Reconnect to server on failed command?
.auto_reconnect;
let mut client = connect.await?;
client.execute.await?;
Contributions
This RCON client was developed with Factorio / MacOS in mind.
If you notice any issues, please raise an issue here: https://github.com/connor-hanson/rcon-rs