Skip to content
/ udp_sas Public

Source address selection for UDP sockets in Rust

Notifications You must be signed in to change notification settings

a-ba/udp_sas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Source address selection for UDP sockets in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published