3 connect \- connects a socket
6 #include <sys/socket.h>
10 int connect(int \fIsd\fP, const struct sockaddr * \fIaddr\fP, socklen_t \fIaddr_len\fP);
14 connect() connects the socket \fIsd\fP to a socket listening at
17 On success, this function returns 0. On error, -1 is returned and
22 The address pointed to by \fIaddr\fP is not in a
23 valid part of the process address space.
26 The address family of the address pointed to by
27 \fIaddr\fP is not supported by this function.
30 The address pointed to by \fIaddr\fP is not valid.
33 The sun_path in struct sockaddr_un is too long.
36 The calling process doesn't have permission to perform
37 the connect() operation.
40 The socket is already connected.
43 The socket is already in the process of connecting.
46 The connection was refused.