AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database

Socket_Send - send()

In:     R0 = Socket descriptor
     R1 = Pointer to data to be sent
     R2 = Size of buffer
     R3 = Flags

Out:     R0 = Amount of data sent

This call sends data on a socket. In the case of datagram and raw sockets, a single datagram containing the data will be sent, and EMSGSIZE will be returned if the data is too large to be sent in this way. For stream sockets, the call will block until all the data has been sent, unless the socket has been marked non-blocking, in which case as much data as possible will be sent.

Various bits in the flags word can be set to affect how how the send is performed:

MSG_OOB - Send data as out-of-band data instead of normal in-band data.

Because this call does not specify the address to send to, the socket used for this call must be a connected socket.


[sh-index] Back to list of manuals