Function socket [src]
Prepares a socket creation request.
New socket fd will be returned in completion result.
Available since 5.19
Prototype
pub fn socket( self: *IoUring, user_data: u64, domain: u32, socket_type: u32, protocol: u32, flags: u32, ) !*linux.io_uring_sqe
Parameters
self: *IoUring
user_data: u64
domain: u32
socket_type: u32
protocol: u32
flags: u32
Source
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;
}