MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / sendmsg

Function sendmsg

components/net/sal/socket/net_sockets.c:441–446  ·  view source on GitHub ↗

* @brief Sends a message on a socket. * * The 'sendmsg()' function sends data on the socket 's' using the structured data in the 'msghdr' * structure. This function is commonly used for sending complex messages with multiple buffers, * control information, or for working with datagram sockets. * * @param s The file descriptor of the socket to send the message on. * @param message

Source from the content-addressed store, hash-verified

439 * @see socket() Creates the socket to use with 'sendmsg()'.
440 */
441int sendmsg(int s, const struct msghdr *message, int flags)
442{
443 int socket = dfs_net_getsocket(s);
444
445 return sal_sendmsg(socket, message, flags);
446}
447RTM_EXPORT(sendmsg);
448
449/**

Callers 1

sys_sendmsgFunction · 0.50

Calls 2

dfs_net_getsocketFunction · 0.85
sal_sendmsgFunction · 0.85

Tested by

no test coverage detected