librqbit-dualstack-sockets 0.3.0

utilities for creating dual-stack TCP and UDP tokio sockets
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[cfg(test)]
mod tests;

mod error;
pub use error::{Error, Result};

use crate::socket::MaybeDualstackSocket;

pub mod addr;
pub mod socket;

pub type TcpListener = MaybeDualstackSocket<tokio::net::TcpListener>;
pub type UdpSocket = MaybeDualstackSocket<tokio::net::UdpSocket>;