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

Function recvfrom

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

* @brief Receives data from a specific address using an unconnected socket. * * This function reads data from a socket and stores it in the specified buffer. It is commonly used * with connectionless protocols (e.g., UDP) to receive data from a specific source address. * * @param s The file descriptor of the socket to receive data from. * @param mem A pointer to the buffer where

Source from the content-addressed store, hash-verified

517 * @see recv() Receives data on a connected socket.
518 */
519int recvfrom(int s, void *mem, size_t len, int flags,
520 struct sockaddr *from, socklen_t *fromlen)
521{
522 int socket = dfs_net_getsocket(s);
523
524 return sal_recvfrom(socket, mem, len, flags, from, fromlen);
525}
526RTM_EXPORT(recvfrom);
527
528/**

Callers 7

sys_recvfromFunction · 0.85
sys_recvFunction · 0.85
dhcpd_thread_entryFunction · 0.85
clntudp_callFunction · 0.85
win_recvfromFunction · 0.85
udpservFunction · 0.85
udpecho_socket_entryFunction · 0.85

Calls 2

dfs_net_getsocketFunction · 0.85
sal_recvfromFunction · 0.85

Tested by 1

udpecho_socket_entryFunction · 0.68