Added a getter for the tls_socket file descriptor

This commit is contained in:
Martin Willi
2011-12-24 12:42:25 +01:00
parent e86b685da5
commit 6b01216422
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -54,6 +54,13 @@ struct tls_socket_t {
*/
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.
*/