Embedded TCP/IP stack  4.7.0

◆ fnet_tls_socket_recv()

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.

Parameters
tls_sockTLS socket descriptor.
bufBuffer for the incoming data.
lenLength of the buf.
Returns
This function returns:
  • The number of bytes received, if no error occurs. The return value is set to zero, if there is no input data.
  • FNET_ERR if an error occurs.
See also
fnet_tls_socket()

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.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net