EasyManua.ls Logo

Espressif ESP32-S2 - Page 550

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
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

Table of Contents