use bitflags::bitflags;
bitflags! {
#[derive(Clone, Copy, Debug, Default)]
pub struct SendFlags: libc::c_int {
const CONFIRM = libc::MSG_CONFIRM;
const DONT_ROUTE = libc::MSG_DONTROUTE;
const DONT_WAIT = libc::MSG_DONTWAIT;
const NO_SIGNAL = libc::MSG_NOSIGNAL;
const OOB = libc::MSG_OOB;
}
}
bitflags! {
#[derive(Clone, Copy, Debug, Default)]
pub struct RecvFlags: libc::c_int {
const DONT_WAIT = libc::MSG_DONTWAIT;
const ERRQUEUE = libc::MSG_ERRQUEUE;
const OOB = libc::MSG_OOB;
const PEEK = libc::MSG_PEEK;
const TRUNC = libc::MSG_TRUNC;
}
}