pub fn socket( self: *IoUring, user_data: u64, domain: u32, socket_type: u32, protocol: u32, flags: u32, ) !*linux.io_uring_sqe
Prepares a socket creation request. New socket fd will be returned in completion result. Available since 5.19
self: *IoUring
user_data: u64
domain: u32
socket_type: u32
protocol: u32
flags: u32
1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373
pub fn socket( self: *IoUring, user_data: u64, domain: u32, socket_type: u32, protocol: u32, flags: u32, ) !*linux.io_uring_sqe { const sqe = try self.get_sqe(); sqe.prep_socket(domain, socket_type, protocol, flags); sqe.user_data = user_data; return sqe; }
Prepares a socket creation request. New socket fd will be returned in completion result. Available since 5.19