Page MenuHomeFreeBSD

D24530.id71037.diff
No OneTemporary

D24530.id71037.diff

Index: lib/libc/sys/send.2
===================================================================
--- lib/libc/sys/send.2
+++ lib/libc/sys/send.2
@@ -69,12 +69,21 @@
function
may be used only when the socket is in a
.Em connected
-state, while
+state.
+
+The functions
.Fn sendto ,
.Fn sendmsg
and
.Fn sendmmsg
-may be used at any time.
+may be used at any time if the socket is connectionless-mode.
+If the socket is connection-mode, the protocol
+must support implied connect (currently
+.Xr tcp 4
+is the only protocol with support) or the socket must be in a
+.Em connected
+state before use (see
+.Xr connect 2 ) .
.Pp
The address of the target is given by
.Fa to
@@ -195,6 +204,8 @@
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 connection-mode but is not connected.
.It Bq Er ENOTSOCK
The argument
.Fa s

File Metadata

Mime Type
text/plain
Expires
Sat, May 16, 3:21 AM (15 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33080376
Default Alt Text
D24530.id71037.diff (914 B)

Event Timeline