are used to transmit a message to another socket.
may be used only when the socket is in a
may be used at any time.
The address of the target is given by
specifying its size.
The length of the message is given by
If the message is too long to pass atomically through the
underlying protocol, the error
is returned, and
the message is not transmitted.
No indication of failure to deliver is implicit in a
Locally detected errors are indicated by a return value of -1.
If no messages space is available at the socket to hold
the message to be transmitted, then
normally blocks, unless the socket has been placed in
non-blocking I/O mode.
system call may be used to determine when it is possible to
send more data.
argument may include one or more of the following:
#define MSG_OOB 0x00001 /* process out-of-band data */
#define MSG_DONTROUTE 0x00004 /* bypass routing, use direct interface */
#define MSG_EOR 0x00008 /* data completes record */
#define MSG_EOF 0x00100 /* data completes transaction */
#define MSG_NOSIGNAL 0x20000 /* do not generate SIGPIPE on EOF */
is used to send
data on sockets that support this notion (e.g.
the underlying protocol must also support
is used to indicate a record mark for protocols which support the
requests that the sender side of a socket be shut down, and that an
appropriate indication be sent at the end of the specified data;
this flag is only implemented for
sockets in the
is usually used only by diagnostic or routing programs.
is used to prevent
generation when writing a socket that
may be closed.
for a description of the