Embedded TCP/IP stack  4.7.0

◆ fnet_tls_socket_send()

fnet_ssize_t fnet_tls_socket_send ( fnet_tls_socket_t  tls_sock,
const fnet_uint8_t *  buf,
fnet_size_t  len 
)

Send data on a TLS socket.

Parameters
tls_sockTLS socket descriptor.
bufBuffer containing data to be transmitted.
lenLength of the data in buf.
Returns
This function returns:
  • The total number of bytes sent, if no error occurs. It can be less than the number indicated by len.
  • FNET_ERR if an error occurs.
See also
fnet_tls_socket()

This function sends data over TLS layer.
The number of actually sent bytes can be between 0 and the requested length, depending on buffer availability on both client and server machines.
If the function returns FNET_ERR the current TLS connection must be closed.


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