5 releases
0.2.1 | Aug 8, 2022 |
---|---|
0.2.0 | Aug 3, 2022 |
0.1.2 | Aug 9, 2022 |
0.1.1 | Aug 1, 2022 |
0.1.0 | Aug 1, 2022 |
#1782 in Asynchronous
36 downloads per month
Used in retcon-ns
24KB
268 lines
Northstar RCON Client
This crate provides a high-level cross-platform implementation of an RCON client for Northstar mod, as it's implemented in the RCON PR.
The client is entirely asynchronous and requires a Tokio runtime.
Example
use northstar_rcon_client::connect;
#[tokio::main]
async fn main() {
let client = connect("localhost:37015")
.await
.unwrap();
let (mut read, mut write) = client.authenticate("password123")
.await
.unwrap();
write.enable_console_logs().await.unwrap();
write.exec_command("status").await.unwrap();
loop {
let line = read.receive_console_log().await.unwrap();
println!("> {}", line);
}
}
Dependencies
~4–13MB
~158K SLoC