Crates.io | unix-udp-sock |
lib.rs | unix-udp-sock |
version | 0.7.1 |
source | src |
created_at | 2022-07-15 21:06:19.225531 |
updated_at | 2024-07-15 01:59:08.241241 |
description | async & sync UDP sockets supporting sendmsg/recvmsg and src IP manipulation |
homepage | |
repository | https://github.com/leshow/unix-udp-sock |
max_upload_size | |
id | 626388 |
size | 72,154 |
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.