HomeFreeBSD

Document handling of connection-mode sockets by sendto(2).

Description

Document handling of connection-mode sockets by sendto(2).

sendto(2), sendmsg(2) and sendmmsg(2) return ENOTCONN if a destination
address is specified and the socket is not connected and the socket
protocol does not automatically connect ("implied connect"). Document
that. Also document the fact that the destination address is ignored
for connection-mode sockets if the socket is already connected.

PR: 245817
Submitted by: Erik Inge Bolsø <knan-bfo@modirum.com>
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D24530

Details

Provenance
markjAuthored on
Differential Revision
D24530: send.2: document ENOTCONN for sendto w/SOCK_STREAM
Parents
rS360383: MFC r340361, r345804: catch up on systat in head/
Branches
Unknown
Tags
Unknown