Function arceos_api::net::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.