arceos_api::net

Function ax_tcp_accept

Source
pub fn ax_tcp_accept(
    socket: &AxTcpSocketHandle,
) -> AxResult<(AxTcpSocketHandle, SocketAddr)>
Available on crate feature net only.
Expand description

Accepts a new connection on the TCP socket.

This function will block the calling thread until a new TCP connection is established. When established, a new TCP socket is returned.