Function send [src]
Queues (but does not submit) an SQE to perform a send(2).
Returns a pointer to the SQE.
Available since 5.6
Prototype
pub fn send( self: *IoUring, user_data: u64, fd: posix.fd_t, buffer: []const u8, flags: u32, ) !*linux.io_uring_sqe
Parameters
self: *IoUring
user_data: u64
fd: posix.fd_t
buffer: []const u8
flags: u32
Source
pub fn send(
self: *IoUring,
user_data: u64,
fd: posix.fd_t,
buffer: []const u8,
flags: u32,
) !*linux.io_uring_sqe {
const sqe = try self.get_sqe();
sqe.prep_send(fd, buffer, flags);
sqe.user_data = user_data;
return sqe;
}