h6. [[Internet]] h6(. » [[Internet SWI Calls|SWI Calls]] h6((. » Socket_Recv h2. Socket_Recv h5. (SWI &41205) |_<^{width:4em}. Entry | | |<^. R0 |<^. Socket descriptor | |<^. R1 |<^. Pointer to buffer to receive into | |<^. R2 |<^. Size of buffer | |<^. R3 |<^. Flags | |_<^{width:4em}. Exit | | |<^. R0 |<^. Number of bytes received | h4. Use The purpose of this call is to read data from a socket. h4. Berkeley sockets equivalence This SWI directly corresponds to the function "recv":https://pubs.opengroup.org/onlinepubs/9699919799/functions/recv.html and would ordinarily be called from C using the <code>recv()</code> function in <code>socklib.h</code>. h4. See also * [[Internet]] * [[Socket_Send]]