pub fn connect( self: *IoUring, user_data: u64, fd: linux.fd_t, addr: *const posix.sockaddr, addrlen: posix.socklen_t, ) !*linux.io_uring_sqe
Queue (but does not submit) an SQE to perform a connect(2) on a socket. Returns a pointer to the SQE.
connect(2)
self: *IoUring
user_data: u64
fd: linux.fd_t
addr: *const posix.sockaddr
addrlen: posix.socklen_t
587 588 589 590 591 592 593 594 595 596 597 598
pub fn connect( self: *IoUring, user_data: u64, fd: linux.fd_t, addr: *const posix.sockaddr, addrlen: posix.socklen_t, ) !*linux.io_uring_sqe { const sqe = try self.get_sqe(); sqe.prep_connect(fd, addr, addrlen); sqe.user_data = user_data; return sqe; }
Queue (but does not submit) an SQE to perform a
connect(2)on a socket. Returns a pointer to the SQE.