* @brief Receives data from a connected socket. * * This function reads data from a connected socket and stores it in the specified buffer. * It is typically used with connection-oriented protocols (e.g., TCP). * * @param s The file descriptor of the connected socket to receive data from. * @param mem A pointer to the buffer where the received data will be stored. * @param len Th
| 401 | * @see send() Sends data on a connected socket. |
| 402 | */ |
| 403 | int recv(int s, void *mem, size_t len, int flags) |
| 404 | { |
| 405 | int socket = dfs_net_getsocket(s); |
| 406 | |
| 407 | return sal_recvfrom(socket, mem, len, flags, NULL, NULL); |
| 408 | } |
| 409 | RTM_EXPORT(recv); |
| 410 | |
| 411 | /** |