Function getsockopt [src]
Prepares get socket option to retrieve the value for the option specified by
the option_name argument for the socket specified by the fd argument.
Available since 6.7.
Prototype
pub fn getsockopt( self: *IoUring, user_data: u64, fd: linux.fd_t, level: u32,optname: u32,opt: []u8, ) !*linux.io_uring_sqe
Parameters
self: *IoUring
user_data: u64
fd: linux.fd_t
level: u32
optname: u32
opt: []u8
Source
pub fn getsockopt(
self: *IoUring,
user_data: u64,
fd: linux.fd_t,
level: u32, // linux.SOL
optname: u32, // linux.SO
opt: []u8,
) !*linux.io_uring_sqe {
return try self.cmd_sock(
user_data,
.GETSOCKOPT,
fd,
level,
optname,
@intFromPtr(opt.ptr),
@intCast(opt.len),
);
}