Download ADAM-4500 Series

Transcript
Chapter 5 Programming and Function Library
If no buffer space is available within the transport system to hold the
data to be transmitted, sendto() will block unless the socket has been
placed in a non-blocking I/O mode. On non-blocking SOCK_STREAM
sockets, the number of bytes written may be between 1
and the
requested length, depending on buffer availability on both t he
local
and foreign hosts. The select() call may be used to determine when it
is possible to send more data.
iFlags
may
be
used
to
influence
the
behavior
of
the function invocation beyond the options specified for the
associated socket. That is, the semantics of this function are
determined by the socket options and the iFlags parameter. The
latter is constructed by or-ing any of the following values:
Value
MSG_DONTROUTE
MSG_OOB
Meaning
Specifies that the data should not be subject
to routing.
Send out-of-band data (SOCK_STREAM only
Out of band data)
See Also
recv(), recvfrom(), socket(), send().
5-166 ADAM-4500 Series User’s Manual