| Crates.io | udp_sas |
| lib.rs | udp_sas |
| version | 0.1.4 |
| created_at | 2018-04-22 23:32:01.752977+00 |
| updated_at | 2022-08-26 16:08:36.911577+00 |
| description | Source address selection for UDP sockets |
| homepage | |
| repository | https://github.com/a-ba/udp_sas |
| max_upload_size | |
| id | 61873 |
| size | 15,812 |
Source address selection for UDP sockets in Rust
This crate provides an extension trait for std::net::UdpSocket that supports
source address selection for outgoing UDP datagrams. This is useful for
implementing a UDP server that binds multiple network interfaces.
The implementation relies on socket options
IP_PKTINFO (for IPv4) and
IPV6_RECVPKTINFO
(for IPv6).