1 个不稳定版本
0.1.0 | 2022年2月20日 |
---|
#592 在 游戏
16KB
98 行
rcon-rs
Hyper 简化版 Minecraft RCON 协议实现。
要使用此库,请将以下内容添加到您的 Cargo.toml 文件中
[dependencies]
rcon-rs = "0.1.0"
示例用法
// create new connect using ip and port
let mut conn = Client::new("127.0.0.1", "25575");
// you MUST auth the connection before attempting to use it
conn.auth("password")?;
// send any command you would like, the packet type is option and inferred to be a command by
// default
conn.send("say hi", Some(PacketType::Cmd))?;
更完整的示例可以在 这里 找到
rcon 协议细节
更多信息可以在这里找到
https://wiki.vg/RCON#Fragmentation
贡献
欢迎任何建议、改进或拉取请求。我相对较新于 Rust,所以我的代码质量可能不是很好,但我正在努力提高!
依赖项
~130KB