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

dndx-forked-unix-udp-sock

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

1 unstable release

0.6.1 Mar 21, 2023

#36 in #udp-socket

MIT/Apache

61KB
1K 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–11MB
~106K SLoC