EasyManua.ls Logo

Espressif ESP32-S2 - Page 554

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
Return:
>= 0 : socket id
< 0 : a error catch
Description:
get the read only socket of the SSL
Example:
void example(void)
{
int ret;
SSL *ssl;
... ...
ret = SSL_get_rfd(ssl);
}
3.19 int SSL_get_wfd (const SSL * ssl)
Arguments:
ssl - SSL point
Return:
>= 0 : socket id
< 0 : a error catch
Description:
get the write only socket of the SSL
Example:
void example(void)
{
int ret;
SSL *ssl;
... ...
ret = SSL_get_wfd(ssl);
}
3.20 int SSL_set_fd (SSL * ssl, int fd)
Arguments:
ssl - SSL point
fd - socket id
Return:
1 : OK
0 : failed
Description:
Espressif Systems 543
Submit Document Feedback
Release v4.4

Table of Contents