Public Member Functions | |
tls_conn (int socket, gnutls_session_t tls_session) | |
int | read (char *buffer, size length) |
Function to read data, return -1 on error or bytes. | |
int | write (const char *buffer, size length) |
Function to write data, return -1 on error or bytes. | |
void | close () |
Function to close the current socket/file. | |
size | length () |
Length of the file, allways -1 on sockets. |
tls_conn::tls_conn | ( | int | socket, | |
gnutls_session_t | tls_session | |||
) | [inline] |
int tls_conn::read | ( | char * | buffer, | |
size | length | |||
) | [inline, virtual] |
int tls_conn::write | ( | const char * | buffer, | |
size | length | |||
) | [inline, virtual] |
void tls_conn::close | ( | ) | [inline, virtual] |
size tls_conn::length | ( | ) | [inline, virtual] |