arceos_api::net

Function ax_tcp_recv

Source
pub fn ax_tcp_recv(
    socket: &AxTcpSocketHandle,
    buf: &mut [u8],
) -> AxResult<usize>
Available on crate feature net only.
Expand description

Receives data on the TCP socket, and stores it in the given buffer. On success, returns the number of bytes read.