mod chat; mod encrypting; use async_std::io; use chat::front_conn::listen_client; fn main() -> io::Result<()> { listen_client() } /* fn main() { let server = TcpListener::bind("127.0.0.1:9001").unwrap(); println!("{:?}", &server); for stream in server.incoming() { spawn(move || { println!("{:?}", &stream); let mut websocket: WebSocket = accept(stream.unwrap()).unwrap(); loop { let msg = websocket.read_message().unwrap(); // We do not want to send back ping/pong messages. if msg.is_binary() || msg.is_text() { websocket.write_message(msg).unwrap(); } } }); } }*/ /* let (one, two) = keys; let value =String::from_utf8_lossy(&*one); let strVal = String::from(value); let newbytes = strVal.into_bytes(); print!("{:?}", newbytes); let newkey = PrivateKey::import(newbytes); Let conn = Connection::open("myfile.db").unwrap(); conn.execute("CREATE TABLE person ( id INTEGER PRIMARY KEY, name TEXT NOT NULL, email TEXT NOT NULL )", NO_PARAMS).unwrap(); let name: String = "Steve Example".to_string(); let email: String = "steve@example.org".to_string(); conn.execute("INSERT INTO person (name, email) VALUES (?1, ?2)", &[&name, &email]).unwrap(); } */ //let mut std = cli::cli_base::get_stdin();