socket9 0.1.0-alpha.1

Extended untilities for the networking/unix sockets and raw network sockets
Documentation

use bitflags::bitflags;
use windows_sys::Win32::Networking::WinSock::{MSG_CTRUNC, MSG_ERRQUEUE, MSG_OOB, MSG_PEEK, MSG_TRUNC};

bitflags! {
    /// A flags which are received with [recvmsg]
    #[derive(Debug, Clone, Copy, PartialEq, Eq)]
    pub struct So9MsgFlags: i32 
    {
        /// W flag, Requests out-of-band data on sockets if supported.
        const MSG_OOB = MSG_OOB;

        /// W flag, Switches the mode to peek instead of recv leaving the data
        /// as unread.
        const MSG_PEEK = MSG_PEEK;

        /// R flag, the constrol data was discarded
        const MSG_CTRUNC = MSG_CTRUNC as i32;
        
        /// R flag,  A message was truncated due to small buffer size.
        const MSG_TRUNC = MSG_TRUNC as i32;

        /// R flag, socket error queue should be read.
        const MSG_ERRQUEUE = MSG_ERRQUEUE as i32;
    }
}