std › os.linux › io_uring_sqe › prep_connectprep_connectFunction parametersParameters#sqe:*linux.io_uring_sqefd:linux.fd_taddr:*const linux.sockaddraddrlen:linux.socklen_tType definitions in this namespaceTypes#io_uring_sqeSourceImplementation#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); }
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); }