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

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

#21 in #udp-socket

Download history 2/week @ 2025-07-27 1/week @ 2025-08-03 4/week @ 2025-08-17 12/week @ 2025-08-24 3/week @ 2025-08-31 4/week @ 2025-09-07 19/week @ 2025-09-14 134/week @ 2025-09-21 203/week @ 2025-09-28 163/week @ 2025-10-05 17/week @ 2025-10-12 19/week @ 2025-10-19 47/week @ 2025-10-26 11/week @ 2025-11-02 37/week @ 2025-11-09

115 downloads per month

MIT/Apache

77KB
1.5K SLoC

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


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.

Dependencies

~3–14MB
~121K SLoC