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

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

#748 in Network programming

Download history 101/week @ 2024-12-21 27/week @ 2024-12-28 457/week @ 2025-01-04 719/week @ 2025-01-11 1974/week @ 2025-01-18 989/week @ 2025-01-25 5596/week @ 2025-02-01 5096/week @ 2025-02-08 3319/week @ 2025-02-15 4086/week @ 2025-02-22 1854/week @ 2025-03-01 2945/week @ 2025-03-08 3973/week @ 2025-03-15 1749/week @ 2025-03-22 2159/week @ 2025-03-29 94/week @ 2025-04-05

8,974 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–11MB
~111K SLoC