* connect() man page
@ 2020-02-12 17:50 Eric Dumazet
0 siblings, 0 replies; only message in thread
From: Eric Dumazet @ 2020-02-12 17:50 UTC (permalink / raw)
To: Michael Kerrisk, netdev, linux-man
connect() man page seems obsolete or confusing :
Generally, connection-based protocol sockets may successfully connect()
only once; connectionless protocol sockets may use connect() multiple
times to change their association. Connectionless sockets may dissolve
the association by connecting to an address with the sa_family member of
sockaddr set to AF_UNSPEC (supported on Linux since kernel 2.2).
1) At least TCP has supported AF_UNSPEC thing forever.
2) By definition connectionless sockets do not have an association,
why would they call connect(AF_UNSPEC) to remove a connection which does not exist ...
Maybe we should rewrite this paragraph to match reality, since this causes confusion.
Some protocol sockets may successfully connect() only once.
Some protocol sockets may use connect() multiple times to change their association.
Some protocol sockets may dissolve the association by connecting to an address with
the sa_family member of sockaddr set to AF_UNSPEC (supported on Linux since kernel 2.2).
^ permalink raw reply [flat|nested] only message in thread
only message in thread, back to index
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-12 17:50 connect() man page Eric Dumazet
Linux-man Archive on lore.kernel.org
Archives are clonable:
git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
Example config snippet for mirrors
Newsgroup available over NNTP:
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git