SSL_get_fd 3 2005-04-23 0.9.9-dev OpenSSL
NAME
SSL_get_fd - get file descriptor linked to an SSL object
LIBRARY
libcrypto, -lcrypto
SYNOPSIS
#include
int SSL_get_fd(const SSL *ssl);
int SSL_get_rfd(const SSL *ssl);
int SSL_get_wfd(const SSL *ssl);
DESCRIPTION
_S_S_L___g_e_t___f_d_(_) returns the file descriptor which is linked to ssssll.
_S_S_L___g_e_t___r_f_d_(_) and _S_S_L___g_e_t___w_f_d_(_) return the file descriptors for the
read or the write channel, which can be different. If the read and the
write channel are different, _S_S_L___g_e_t___f_d_(_) will return the file descriptor
of the read channel.
RETURN VALUES
The following return values can occur:
-
-1
The operation failed, because the underlying BIO is not of the correct type
-
(suitable for file descriptors).
-
>=0
The file descriptor linked to ssssll.
-
SEE ALSO
_S_S_L___s_e_t___f_d(3), _s_s_l(3) , _o_p_e_n_s_s_l___b_i_o(3)