Chapter 2. API Reference
set socket to SSL
Example:
void example(void)
{
int ret;
SSL *ssl;
int socket;
... ...
ret = SSL_set_fd(ssl, socket);
}
3.21 int SSL_set_rfd (SSL * ssl, int fd)
Arguments:
ssl - SSL point
fd
- socket id
Return:
1 : OK
0 : failed
Description:
set read only socket to SSL
Example:
void example(void)
{
int ret;
SSL *ssl;
int socket;
... ...
ret = SSL_set_rfd(ssl, socket);
}
3.22 int SSL_set_wfd (SSL * ssl, int fd)
Arguments:
ssl - SSL point
fd
- socket id
Return:
1 : OK
0 : failed
Description:
set write only socket to SSL
Example:
Espressif Systems
544
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?