udp_sas

Crates.ioudp_sas
lib.rsudp_sas
version0.1.4
sourcesrc
created_at2018-04-22 23:32:01.752977
updated_at2022-08-26 16:08:36.911577
descriptionSource address selection for UDP sockets
homepage
repositoryhttps://github.com/a-ba/udp_sas
max_upload_size
id61873
size15,812
(a-ba)

documentation

README

udp_sas

Build Status Crates.io

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).

Commit count: 13

cargo fmt