Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

Dv::Ssl::SslBuffer Class Reference

A streambuf class for use with Dv::Ssl::SslSocket iostream objects. More...

#include <sslbuffer.h>

Inheritance diagram for Dv::Ssl::SslBuffer:

Inheritance graph
[legend]
Collaboration diagram for Dv::Ssl::SslBuffer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SslBuffer (SslContext &context, int fd, size_t intbufsize=1024, size_t outbufsize=1024, int msecs=0)
 Constructor. Msecs is max timeout value in millisecs.

 ~SslBuffer ()
 Destructor.

void * ssl () const
 Return pointer to SSL object.

const char * cipher () const
 Return string representation of cypher.


Protected Member Functions

virtual int rread (char *buf, size_t len)
 Raw read implementation, see Dv::Util::fdstreambuf.

virtual int rwrite (char *buf, size_t len)
 Raw write implementation, see Dv::Util::fdstreambuf.


Private Attributes

void * ssl_
 Opaque, really a SSL* pointer.


Detailed Description

A streambuf class for use with Dv::Ssl::SslSocket iostream objects.

Definition at line 15 of file sslbuffer.h.


Constructor & Destructor Documentation

Dv::Ssl::SslBuffer::SslBuffer SslContext context,
int  fd,
size_t  intbufsize = 1024,
size_t  outbufsize = 1024,
int  msecs = 0
 

Constructor. Msecs is max timeout value in millisecs.

Dv::Ssl::SslBuffer::~SslBuffer  ) 
 

Destructor.


Member Function Documentation

void* Dv::Ssl::SslBuffer::ssl  )  const [inline]
 

Return pointer to SSL object.

Return type is declared as void* to avoid inclusion of openssl header files.

Definition at line 27 of file sslbuffer.h.

References ssl_.

const char* Dv::Ssl::SslBuffer::cipher  )  const
 

Return string representation of cypher.

virtual int Dv::Ssl::SslBuffer::rread char *  buf,
size_t  len
[protected, virtual]
 

Raw read implementation, see Dv::Util::fdstreambuf.

Reimplemented from Dv::Util::fdstreambuf.

virtual int Dv::Ssl::SslBuffer::rwrite char *  buf,
size_t  len
[protected, virtual]
 

Raw write implementation, see Dv::Util::fdstreambuf.

Reimplemented from Dv::Util::fdstreambuf.


Member Data Documentation

void* Dv::Ssl::SslBuffer::ssl_ [private]
 

Opaque, really a SSL* pointer.

Definition at line 37 of file sslbuffer.h.

Referenced by ssl().


The documentation for this class was generated from the following file:
dvssl-0.5.4 [19 September, 2003]