#sockets #tcp #tokio #udp #tcp-and-udp #socket-address #ipv6 #ipv4 #dual-stack #librqbit

librqbit-dualstack-sockets

utilities for creating dual-stack TCP and UDP tokio sockets

20 releases (5 breaking)

Uses new Rust 2024

0.6.10 Jul 4, 2025
0.6.9 Jul 3, 2025
0.6.5 Jun 24, 2025
0.5.0 Jun 17, 2025
0.1.1 Jun 11, 2025

#1710 in Network programming

Download history 59/week @ 2025-06-04 719/week @ 2025-06-11 1148/week @ 2025-06-18 298/week @ 2025-06-25 835/week @ 2025-07-02 110/week @ 2025-07-09

2,467 downloads per month
Used in librqbit-utp

Apache-2.0

52KB
1.5K SLoC

librqbit-dualstack-sockets

A library that provides dual-stack tokio sockets for use in rqbit torrent client.

It converts between SocketAddr addresses so that your app sees IPv4 (not IPv4-mapped IPv6) addresses.

If you listen on IPv6::UNSPECIFIED, it will enter dualstack mode (if requested) and listen on both IPv4 and IPv6. However all addresses will be converted to their canonical form.

Dependencies

~4–14MB
~141K SLoC