mbedtls_net_recv() function
Read at most 'len' characters. If no error occurs, the actual amount read is returned.
Syntax
int mbedtls_net_recv(void *ctx,
unsigned char *buf,
size_t len);
Arguments
buf
The buffer to write to
len
Maximum length of the buffer
Return value
the number of bytes received, or a non-zero error code; with a non-blocking socket, MBEDTLS_ERR_SSL_WANT_READ indicates read() would block.
mbedtls_net_recv() is called by 1 function and calls 1 function:
![]()
mbedtls_net_recv()
mbedtls_net_recv() reads 1 variable:
![]()
mbedtls_net_recv()