Sends data on a TLS socket.
- Parameters
-
tls_sock | TLS socket descriptor. |
buf | Buffer containing data to be transmitted. |
len | Length 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.