fn connect(sock: socket_t, sock_addr: *const sockaddr, len: socklen_t) ConnectError!void
[src]
Initiate a connection on a socket. If sockfd
is opened in non blocking mode, the function will return error.WouldBlock when EAGAIN or EINPROGRESS is received.