Embedded TCP/IP stack: fnet_tls_socket

FNET

Embedded TCP/IP stack  4.1.0
fnet_tls_socket_t fnet_tls_socket ( fnet_tls_desc_t  tls_desc,
fnet_socket_t  sock 
)

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