pub struct SendMsg { /* private fields */ }
Expand description
Send a message on a socket, equivalent to send(2)
.
fd must be set to the socket file descriptor, addr must contains a pointer to the msghdr structure, and flags holds the flags associated with the system call.
Implementations§
source§impl SendMsg
impl SendMsg
pub fn new(fd: impl UseFixed, msg: *const msghdr) -> Self
sourcepub const CODE: u8 = 9u8
pub const CODE: u8 = 9u8
The opcode of the operation. This can be passed to
Probe::is_supported
to check if this operation is
supported with the current kernel.