arceos_posix_api

Function sys_bind

Source
pub fn sys_bind(
    socket_fd: c_int,
    socket_addr: *const sockaddr,
    addrlen: socklen_t,
) -> c_int
Available on crate feature net only.
Expand description

Bind a address to a socket.

Return 0 if success.