tls_conn Class Reference

Read and write data over a secured socket. More...

Inheritance diagram for tls_conn:

connection

List of all members.

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.


Detailed Description

Read and write data over a secured socket.

Constructor & Destructor Documentation

tls_conn::tls_conn ( int  socket,
gnutls_session_t  tls_session 
) [inline]


Member Function Documentation

int tls_conn::read ( char *  buffer,
size  length 
) [inline, virtual]

Function to read data, return -1 on error or bytes.

Implements connection.

int tls_conn::write ( const char *  buffer,
size  length 
) [inline, virtual]

Function to write data, return -1 on error or bytes.

Implements connection.

void tls_conn::close (  )  [inline, virtual]

Function to close the current socket/file.

Implements connection.

size tls_conn::length (  )  [inline, virtual]

Length of the file, allways -1 on sockets.

Implements connection.


The documentation for this class was generated from the following file:

Generated on Tue Jan 1 17:30:02 2008 for tls_conn Class Reference by  doxygen   Visit the project page on SourceForge.net Logo