* @brief Sends data to a specific address using an unconnected socket. * * This function is typically used with connectionless protocols (e.g., UDP) to send data * to a specific destination address, as specified by 'to'. * * @param s The file descriptor of the socket to send data on. * @param dataptr A pointer to the buffer containing the data to be sent. * @param size The size,
| 588 | * @see send() Sends data on a connected socket. |
| 589 | */ |
| 590 | int sendto(int s, const void *dataptr, size_t size, int flags, |
| 591 | const struct sockaddr *to, socklen_t tolen) |
| 592 | { |
| 593 | int socket = dfs_net_getsocket(s); |
| 594 | |
| 595 | return sal_sendto(socket, dataptr, size, flags, to, tolen); |
| 596 | } |
| 597 | RTM_EXPORT(sendto); |
| 598 | |
| 599 | /** |