send function is declared in the header file
`sys/socket.h'. If your flags argument is zero, you can just
as well use
write instead of
send; see section Input and Output Primitives. If the socket was connected but the connection has broken,
you get a
SIGPIPE signal for any use of
write (see section Miscellaneous Signals).
sendfunction is like
write, but with the additional flags flags. The possible values of flags are described in section Socket Data Options.
This function returns the number of bytes transmitted, or
failure. If the socket is nonblocking, then
write) can return after sending just part of the data.
See section File Status Flags, for information about nonblocking mode.
Note, however, that a successful return value merely indicates that the message has been sent without error, not necessarily that it has been received without error.
errno error conditions are defined for this function:
sendblocks until the operation can be completed.)
SIGPIPEsignal first; if that signal is ignored or blocked, or if its handler returns, then
Go to the first, previous, next, last section, table of contents.