Embedded TCP/IP stack
4.7.0
|
fnet_ssize_t fnet_tls_socket_recv | ( | fnet_tls_socket_t | tls_sock, |
fnet_uint8_t * | buf, | ||
fnet_size_t | len | ||
) |
Receive data from a TLS socket.
tls_sock | TLS socket descriptor. |
buf | Buffer for the incoming data. |
len | Length of the buf . |
The function returns as much data as is currently available up to the size of the buffer supplied.
If the function returns FNET_ERR the current TLS connection must be closed.