Espressif ESP32-S2 Programming Manual page 550

Hide thumbs Also See for ESP32-S2:
Table of Contents

Advertisement

Chapter 2. API Reference
ssl
- SSL point
buffer - data buffer point
len
- data length
Return:
> 0 : OK, and return received data bytes
= 0 : no data sent or connection is closed
< 0 : an error catch
Description:
send the data to remote
Example:
void example(void)
{
SSL *ssl;
char *buf;
int len;
int ret;
... ...
ret = SSL_write(ssl, buf, len);
}
3.10 SSL_CTX *SSL_get_SSL_CTX (const SSL * ssl)
Arguments:
ssl - SSL point
Return:
SSL context
Description:
get SSL context of the SSL
Example:
void example(void)
{
SSL *ssl;
SSL_CTX *ctx;
... ...
ctx = SSL_get_SSL_CTX(ssl);
}
3.11 int SSL_get_shutdown (const SSL * ssl)
Arguments:
ssl - SSL point
Return:
Espressif Systems
539
Submit Document Feedback
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Table of Contents

Save PDF