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

socket_accept

Function socket_accept 

Source
pub fn socket_accept(listen_socket_id: u64) -> KernelResult<(u64, u64)>
Expand description

Accept a pending connection on a listening socket.

Creates a new connected socket and returns its ID along with the connecting socket’s ID.