Embedded TCP/IP stack  4.7.0

◆ fnet_tls_socket()

fnet_tls_socket_t fnet_tls_socket ( fnet_tls_desc_t  tls_desc,
fnet_socket_t  sock 
)

Create the TLS socket.

Parameters
tls_descTLS context descriptor.
sockFNET socket descriptor.
Returns
This function returns:
  • TLS socket descriptor, if no error occurs.
  • FNET_NULL if an error occurs.
See also
fnet_tls_socket_close(), fnet_tls_init()

This function creates a TLS socket and returns its descriptor.
The data can be transferred using the fnet_tls_socket_send() and the fnet_tls_socket_recv() calls. When a session has been completed, the fnet_tls_socket_close() must be performed.


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