aboutsummaryrefslogtreecommitdiff
path: root/src/bin/quassel-client.rs
blob: 542d26570755ede9be7bf4d1593276c47299e907 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use failure::Error;

extern crate libquassel;
use libquassel::client;

#[macro_use]
extern crate tokio;

#[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