⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

socket_recv

Function socket_recv 

Source
pub fn socket_recv(
    socket_id: u64,
    buf: &mut [u8],
) -> KernelResult<(usize, Option<ScmRights>)>
Expand description

Receive data from a connected or datagram socket.

Returns the number of bytes received and optional SCM_RIGHTS data.