h6. [[Internet]] h6(. » [[Internet SWI Calls|SWI Calls]] h6((. » Socket_Sendmsg_1 h2. Socket_Sendmsg_1 h5. (SWI &4121E) |_<^{width:4em}. Entry | | |<^. R0 |<^. Socket descriptor | |<^. R1 |<^. Pointer to a message descriptor | |<^. R2 |<^. Flags | |_<^{width:4em}. Exit | | |<^. R0 |<^. Number of bytes sent | h4. Use The purpose of this call is to write data to a socket a socket given a message descriptor which includes the address and a vector of buffers to use. h4. Berkeley sockets equivalence This SWI directly corresponds to the function "sendmsg":https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendmsg.html and would ordinarily be called from C using the <code>sendmsg()</code> function in <code>socklib.h</code>. h4. See also * [[Internet]] * [[Socket_Recvmsg_1]]