DoxigAlpha

prep_connect

Function parameters

Parameters

#
sqe:*linux.io_uring_sqe
fd:linux.fd_t
addr:*const linux.sockaddr
addrlen:linux.socklen_t

Type definitions in this namespace

Types

#

Source

Implementation

#
pub fn prep_connect(
    sqe: *linux.io_uring_sqe,
    fd: linux.fd_t,
    addr: *const linux.sockaddr,
    addrlen: linux.socklen_t,
) void {
    // `addrlen` maps to `sqe.off` (u64) instead of `sqe.len` (which is only a u32).
    sqe.prep_rw(.CONNECT, fd, @intFromPtr(addr), 0, addrlen);
}