Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156598385
D24530.id70872.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
847 B
Referenced Files
None
Subscribers
None
D24530.id70872.diff
View Options
Index: lib/libc/sys/send.2
===================================================================
--- lib/libc/sys/send.2
+++ lib/libc/sys/send.2
@@ -75,6 +75,11 @@
and
.Fn sendmmsg
may be used at any time.
+.Fn sendto
+on connection-oriented sockets should be done on sockets in connected state,
+or the caller should be prepared to handle ENOTCONN and do a
+.Fn connect
+on the socket to recover.
.Pp
The address of the target is given by
.Fa to
@@ -195,6 +200,12 @@
The destination address is a broadcast address, and
.Dv SO_BROADCAST
has not been set on the socket.
+.It Bq Er ENOTCONN
+The socket is associated with a connection-oriented protocol
+that does not support implied connect (currently
+.Xr tcp 4
+is the only protocol with support) and has not been connected (see
+.Xr connect 2 ) .
.It Bq Er ENOTSOCK
The argument
.Fa s
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 12:10 AM (11 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33103683
Default Alt Text
D24530.id70872.diff (847 B)
Attached To
Mode
D24530: send.2: document ENOTCONN for sendto w/SOCK_STREAM
Attached
Detach File
Event Timeline
Log In to Comment