Function sendmsg [src]

Queues (but does not submit) an SQE to perform a sendmsg(2). Returns a pointer to the SQE. Available since 5.3

Prototype

pub fn sendmsg( self: *IoUring, user_data: u64, fd: posix.fd_t, msg: *const posix.msghdr_const, flags: u32, ) !*linux.io_uring_sqe

Parameters

self: *IoUringuser_data: u64fd: posix.fd_tmsg: *const posix.msghdr_constflags: u32

Source

pub fn sendmsg( self: *IoUring, user_data: u64, fd: posix.fd_t, msg: *const posix.msghdr_const, flags: u32, ) !*linux.io_uring_sqe { const sqe = try self.get_sqe(); sqe.prep_sendmsg(fd, msg, flags); sqe.user_data = user_data; return sqe; }