blob: 5c34bae402445566858f0ed1ef05d4a8f75255cc (
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
28
29
30
31
32
33
|
mod consts;
#[cfg(features = "client")]
mod client;
mod protocol;
#[macro_use]
mod util;
#[macro_use]
extern crate failure;
#[cfg(test)]
mod tests;
use failure::Error;
#[tokio::main]
async fn main() -> Result<(), Error> {
let mut client = client::Client::connect(
"localhost",
4242,
false,
false,
).await.unwrap();
client.run().await;
// client.login("audron", "audron", client_init);
Ok(())
} // the stream is closed here
|