diff options
Diffstat (limited to 'man2')
| -rw-r--r-- | man2/connect.2 | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/man2/connect.2 b/man2/connect.2 index 679b0fec50..168526d1ec 100644 --- a/man2/connect.2 +++ b/man2/connect.2 @@ -111,19 +111,29 @@ this call attempts to make a connection to the socket that is bound to the address specified by .IR addr . .PP -Generally, connection-based protocol sockets may successfully +Some protocol sockets (e.g., UNIX domain stream sockets) +may successfully .BR connect () -only once; connectionless protocol sockets may use +only once. +.PP +Some protocol sockets +(e.g., datagram sockets in the UNIX and Internet domains) +may use .BR connect () multiple times to change their association. -Connectionless sockets may -dissolve the association by connecting to an address with the +.PP +Some protocol sockets +(e.g., TCP sockets as well as datagram sockets in the UNIX and +Internet domains) +may dissolve the association by connecting to an address with the .I sa_family member of .I sockaddr set to -.BR AF_UNSPEC -(supported on Linux since kernel 2.2). +.BR AF_UNSPEC; +thereafter, the socket can be connected to another address. +.RB ( AF_UNSPEC +is supported on Linux since kernel 2.2.) .SH RETURN VALUE If the connection or binding succeeds, zero is returned. On error, \-1 is returned, and |
