Skip to content

Instantly share code, notes, and snippets.

use nix::sys::{
socket::{MsgFlags, RecvMmsgData, RecvMsg},
uio::IoVec,
};
use tokio::net::UdpSocket;
use thiserror::Error;
type CustomResult<T> = Result<T, Box<dyn std::error::Error + Send + Sync>>;
const DatagramSize: usize = 1472