EasyManua.ls Logo

Espressif ESP32-S2 - Page 549

Espressif ESP32-S2
1695 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 2. API Reference
3.7 int SSL_clear (SSL * ssl)
Arguments:
ssl - SSL point
Return:
1 : OK
0 : failed
Description:
shutdown the connection
Example:
void example(void)
{
SSL *ssl;
int ret;
... ...
ret = SSL_clear(ssl);
}
3.8 int SSL_read (SSL * ssl, void * buffer, int len)
Arguments:
ssl - point
buffer - data buffer point
len - data length
Return:
> 0 : OK, and return received data bytes
= 0 : no data received or connection is closed
< 0 : an error catch
Description:
read data from remote
Example:
void example(void)
{
SSL *ssl;
char *buf;
int len;
int ret;
... ...
ret = SSL_read(ssl, buf, len);
}
3.9 int SSL_write (SSL * ssl, const void * buffer, int len)
Arguments:
Espressif Systems 538
Submit Document Feedback
Release v4.4

Table of Contents