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

MynahSA::ITCPStream Class Reference

#include <itcpstream.hpp>

Inheritance diagram for MynahSA::ITCPStream:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ITCPStream (int s)
 constructor - takes a socket descriptor as input
 ITCPStream (const ITCPStream &i)
 ~ITCPStream ()
 destructor - note: TCP 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 ITCPStream is an input stream designed to restore the builtin C++ types from a TCP stream The class operates by calling TCP_read(...) once for each type.

This class does not take ownership of the TCP object passed into it. The user is responsible for correct cleanup of the TCP, and furthermore, ensuring that isntances of ITCPStream do not use the TCP* 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 45 of file itcpstream.hpp.


Constructor & Destructor Documentation

MynahSA::ITCPStream::ITCPStream const ITCPStream 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: