#![allow(incomplete_features)] #![feature(associated_type_defaults, never_type, lazy_type_alias)] use crate::client::Client; use crate::connector::Connection; use crate::connector::connectors::httpconnector::HTTPConnector; use signal_hook::consts::signal::*; use signal_hook::iterator::Signals; pub(crate) mod client; pub(crate) mod connector; pub(crate) mod executor; fn main() { _ = Signals::new([ SIGHUP, SIGINT, SIGQUIT, SIGTRAP, SIGABRT, SIGPIPE, SIGALRM, SIGTERM, SIGUSR1, SIGUSR2, SIGCHLD, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGURG, SIGXCPU, SIGXFSZ, SIGVTALRM, SIGPROF, SIGWINCH, #[cfg(any(target_os = "linux", target_os = "android"))] SIGSYS, ]); // discard err let ip = "http://127.0.0.1:8080"; let mut client = Client::new(HTTPConnector::new(ip, ip, "/").unwrap()); client.connector.r#loop(); }