Skip to content

seftontycho/specul

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Specul is a simple, asynchronous rcon client for rust.

See https://developer.valvesoftware.com/wiki/Source_RCON_Protocol. Tested to work with Factorio.

Examples

use specul::{Connection, ConnectionBuilder};
use tokio::net::TcpStream;

#[tokio::main]
async fn main() {
    let tcp = TcpStream::connect(0.0.0.0:8080).await?;
    let cnn = Connection::default().io(tcp).build()?;
    
    cnn.authenticate("password").await?;
    let responses = cnn.execute_command("Hello World!").await?;
    println!("Responses: {}", responses);
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages