librqbit-dualstack-sockets 0.5.0

utilities for creating dual-stack TCP and UDP tokio sockets
Documentation
#[cfg(test)]
mod tests;

mod error;
mod multicast;
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>;
pub use multicast::{MulticastOpts, MulticastUdpSocket, SharedMulticastUdpSocket};
pub use socket::BindOpts;

#[cfg(feature = "axum")]
pub use socket::axum::WrappedSocketAddr;