sendmsg()
Sends vectored data on a socket. The sendmsg() call may be used by both the server and client processes.
Syntax
count = sendmsg(socket, msg, flags)
intcount, socket; struct msghdr msg;
long flags;
Parameters
count | Returns the number of bytes actually sent. |
| Returns |
socket | Socket descriptor of a local socket that is sending the data. |
msg | Pointer to a msghdr structure, which has two fields called |
| msg_iov and msg_iovlen. Msg_iov is a pointer to an array |
| of data elements, and msg_iovlen contains the number of |
| data elements in the array. |
flags | Optional flag options. Currently there are no supported |
| options. |
Berkeley Software Distribution Interprocess Communication 415