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.
Examples
mbedtls_net_recv() is referenced by 6 libraries and example projects: