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

Function recvmsg

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

* @brief Receives a message from a socket. * * The 'recvmsg()' function receives data from the socket 's' into the buffers described by * the 'msghdr' structure. This function allows for complex data structures, including multiple * data buffers and optional control information. * * @param s The file descriptor of the socket to receive data from. * @param message A pointer to an '

Source from the content-addressed store, hash-verified

479 * @see socket() Creates the socket used with 'recvmsg()'.
480 */
481int recvmsg(int s, struct msghdr *message, int flags)
482{
483 int socket = dfs_net_getsocket(s);
484
485 return sal_recvmsg(socket, message, flags);
486}
487RTM_EXPORT(recvmsg);
488
489/**

Callers 1

sys_recvmsgFunction · 0.50

Calls 2

dfs_net_getsocketFunction · 0.85
sal_recvmsgFunction · 0.85

Tested by

no test coverage detected