connect

Function connect 

Source
pub unsafe extern "C" fn connect(
    __fd: c_int,
    __addr: *const sockaddr,
    __len: socklen_t,
) -> c_int
Expand description

Open a connection on socket FD to peer at ADDR (which LEN bytes long). For connectionless socket types, just set the default address to send to and the only address from which to accept transmissions. Return 0 on success, -1 for errors.

This function is a cancellation point and therefore not marked with __THROW.