Embedded TCP/IP stack: fnet_tls_socket_send

FNET

Embedded TCP/IP stack  4.1.0
fnet_ssize_t fnet_tls_socket_send ( fnet_tls_socket_t  tls_sock,
fnet_uint8_t *  buf,
fnet_size_t  len 
)

Sends 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-2018 by Andrey Butok. http://fnet.sourceforge.net