blob: cd45c87acb19b0bbf3402b5fbae32fd823bb45e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
mod consts;
mod net;
mod types;
#[macro_use]
mod util;
//use util::Hex;
fn main() -> std::io::Result<()> {
let mut server = net::connect(
"localhost",
4242,
false,
false,
)?;
let client = types::handshake::ClientInit {
client_version: String::from("Rust 0.0.0"),
build_date: String::from("today"),
client_features: 0x00000000,
feature_list: types::StringList::new()
};
server.login("audron", "audron", client);
Ok(())
} // the stream is closed here
|