#udp-socket #udp #sockets #unix #async #linux

unix-udp-sock

async & sync UDP sockets supporting sendmsg/recvmsg and src IP manipulation

11 releases (7 breaking)

0.8.0 Oct 30, 2024
0.7.2 Jul 15, 2024
0.7.1 Apr 21, 2024
0.7.0 May 1, 2023
0.2.0 Jul 25, 2022

#1276 in Network programming

Download history 3/week @ 2024-10-08 223/week @ 2024-10-29 122/week @ 2024-11-05 1018/week @ 2024-11-12 1264/week @ 2024-11-19 624/week @ 2024-11-26 1345/week @ 2024-12-03 510/week @ 2024-12-10 181/week @ 2024-12-17 41/week @ 2024-12-24 100/week @ 2024-12-31 451/week @ 2025-01-07 847/week @ 2025-01-14 1892/week @ 2025-01-21

3,290 downloads per month

MIT/Apache

77KB
1.5K SLoC

unix-udp-sock

Largely based on quinn-udp, this adds async & sync support for additional syscalls:

UDP socket send:

UDP socket recv:

In addition, Transmits has been altered to support Vec<u8>/[u8]/Bytes/BytesMut.

We can also select which interface to use with src_ip: Some(Source::Interface(idx)). You must know the index of the interface to use this.


lib.rs:

Uniform interface to send/recv UDP packets with ECN information.

Dependencies

~3–12MB
~110K SLoC