h6. [[Internet]] h6(. » [[Internet SWI Calls|SWI Calls]] h6((. » Socket_Sendto h2. Socket_Sendto h5. (SWI &41209) |_<^{width:4em}. Entry | | |<^. R0 |<^. Socket descriptor | |<^. R1 |<^. Pointer to buffer containing the data to send | |<^. R2 |<^. Size of buffer | |<^. R3 |<^. Flags | |<^. R4 |<^. Pointer to address on the remote host to connect to | |<^. R5 |<^. Size of remote address | |_<^{width:4em}. Exit | | |<^. R0 |<^. Number of bytes sent | h4. Use The purpose of this call is to write data to a socket without needing to have connected the socket prior to use. h4. Berkeley sockets equivalence This SWI directly corresponds to the function "sendto":https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html and would ordinarily be called from C using the <code>sendto()</code> function in <code>socklib.h</code>. h4. See also * [[Internet]] * [[Socket_Send]] * [[Socket_Connect]]