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
Need help?
Do you have a question about the ESP32-S2 and is the answer not in the manual?