uuid read&write + ver 1.0.6
This commit is contained in:
parent
a74aa5856c
commit
75ad081cfe
5 changed files with 18 additions and 41 deletions
|
@ -38,12 +38,12 @@ fn read_status_response(conn: &mut MCConnTcp) -> Result<String, ProtocolError> {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
let mut conn = MCConnTcp::connect("localhost:25565").unwrap();
|
||||
let mut conn = MCConnTcp::connect("sloganmc.ru:25565").unwrap();
|
||||
|
||||
send_handshake(&mut conn, 765, "localhost", 25565, 1).unwrap();
|
||||
send_handshake(&mut conn, 765, "sloganmc.ru", 25565, 1).unwrap();
|
||||
send_status_request(&mut conn).unwrap();
|
||||
|
||||
let motd = read_status_response(&mut conn).unwrap();
|
||||
|
||||
println!("Motd: {}", motd);
|
||||
dbg!(motd);
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue