voidio 0.1.14

VOID I/O - High-performance Cross-platform I/O for Rust.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg(test)]
mod tests {
    use std::net::SocketAddr;
    use voidio::net::QuicClient;

    #[test]
    fn quic_initial () {
        let address: SocketAddr = "127.0.0.1:5003".parse().unwrap();
        let mut client = QuicClient::new("127.0.0.1:5003");
        match client.connect() {
            Ok(_) => println!("Connected to QUIC server at {}", address),
            Err(e) => panic!("Failed to connect to QUIC server: {}", e),
        }
    }
}