Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MynahSA::ISSLStream Class Reference

#include <isslstream.hpp>

Inheritance diagram for MynahSA::ISSLStream:

Inheritance graph
[legend]
Collaboration diagram for MynahSA::ISSLStream:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ISSLStream (SSL *s)
 constructor - takes an input stream
 ISSLStream (const ISSLStream &i)
 ~ISSLStream ()
 destructor - note: SSL is not freed
virtual IStreamBaseoperator>> (char &)
 instream a char
virtual IStreamBaseoperator>> (unsigned char &)
 instream an unsigned char
virtual IStreamBaseoperator>> (short &)
 instream a short
virtual IStreamBaseoperator>> (unsigned short &)
 instream an unsigned short
virtual IStreamBaseoperator>> (bool &)
 instream a bool
virtual IStreamBaseoperator>> (int &)
 instream an int
virtual IStreamBaseoperator>> (unsigned int &)
 instream an unsigned int
virtual IStreamBaseoperator>> (long long &)
 instream a long long
virtual IStreamBaseoperator>> (unsigned long long &)
 instream an unsigned long long
virtual IStreamBaseoperator>> (double &)
 instream a double
virtual IStreamBaseoperator>> (float &)
 instream a float
virtual IStreamBaseoperator>> (std::string &s)
 input streaming of std strings
bool is_open () const
virtual void get (char &)
 get function implements character level input - it is unformatted - and will read 1 chr at a time

Detailed Description

Class ISSLStream is an input stream designed to restore the builtin C++ types from a SSL stream The class operates by calling SSL_read(...) once for each type.

This class does not take ownership of the SSL object passed into it. The user is responsible for correct cleanup of the SSL, and furthermore, ensuring that isntances of ISSLStream do not use the SSL* after it is closed!

Note: This class makes no attempt to abstract buffering of data. Should it be necessary, this will be implemented later on.

Definition at line 46 of file isslstream.hpp.


Constructor & Destructor Documentation

MynahSA::ISSLStream::ISSLStream const ISSLStream i  ) 
 

Copy constructor - use with caution! This constructor takes direct copies of the underlying ssl pointer and open variable. It is inteneded to be used only when the parent object is going to be destroyed immediately. This constructor is added for Sun's SUNPro compiler compatibility.


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