return FALSE;
}
+METHOD(tls_socket_t, get_fd, int,
+ private_tls_socket_t *this)
+{
+ return this->fd;
+}
+
METHOD(tls_socket_t, destroy, void,
private_tls_socket_t *this)
{
.public = {
.read = _read_,
.write = _write_,
+ .get_fd = _get_fd,
.destroy = _destroy,
},
.app = {
bool (*write)(tls_socket_t *this, chunk_t data);
/**
+ * Get the underlying file descriptor passed to the constructor.
+ *
+ * @return file descriptor
+ */
+ int (*get_fd)(tls_socket_t *this);
+
+ /**
* Destroy a tls_socket_t.
*/
void (*destroy)(tls_socket_t *this);