PPTServer Class Reference

#include <PPTServer.h>

Inheritance diagram for PPTServer:

Inheritance graph
[legend]
Collaboration diagram for PPTServer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PPTServer (ServerHandler *handler, SocketListener *listener, bool isSecure)
virtual ~PPTServer ()
virtual void initConnection ()
virtual void closeConnection ()
virtual void dump (ostream &strm) const
 dumps information about this object
virtual void send (const string &buffer)
virtual void sendExit ()
virtual bool receive (ostream *strm=0)
virtual SocketgetSocket ()
virtual bool isConnected ()
virtual void setOutputStream (ostream *strm)
virtual ostream * getOutputStream ()
virtual void brokenPipe ()

Protected Member Functions

void writeBuffer (const string &buffer)
int readBuffer (char *inBuff)
int readBufferNonBlocking (char *inBuff)

Protected Attributes

Socket_mySock
ostream * _out
bool _brokenPipe

Constructor & Destructor Documentation

PPTServer::PPTServer ( ServerHandler handler,
SocketListener listener,
bool  isSecure 
)

PPTServer::~PPTServer (  )  [virtual]


Member Function Documentation

virtual void Connection::brokenPipe (  )  [inline, virtual, inherited]

void PPTServer::closeConnection (  )  [virtual]

Implements PPTConnection.

void PPTServer::dump ( ostream &  strm  )  const [virtual]

dumps information about this object

Displays the pointer value of this instance

Parameters:
strm C++ i/o stream to dump the information to

Reimplemented from PPTConnection.

virtual ostream* Connection::getOutputStream (  )  [inline, virtual, inherited]

virtual Socket* Connection::getSocket (  )  [inline, virtual, inherited]

void PPTServer::initConnection (  )  [virtual]

Using the info passed into the SocketLister, wait for an inbound request (see SocketListener::accept()). When one is found, do the welcome message stuff (welcomeClient()) and then pass this to the handler's handle method. Note that this is a pointer to a PPTServer which is a kind of Connection.

Implements PPTConnection.

virtual bool Connection::isConnected (  )  [inline, virtual, inherited]

Here is the call graph for this function:

int PPTConnection::readBuffer ( char *  inBuff  )  [protected, inherited]

int PPTConnection::readBufferNonBlocking ( char *  inBuff  )  [protected, inherited]

bool PPTConnection::receive ( ostream *  strm = 0  )  [virtual, inherited]

Implements Connection.

void PPTConnection::send ( const string &  buffer  )  [virtual, inherited]

Implements Connection.

void PPTConnection::sendExit (  )  [virtual, inherited]

Implements Connection.

virtual void Connection::setOutputStream ( ostream *  strm  )  [inline, virtual, inherited]

void PPTConnection::writeBuffer ( const string &  buffer  )  [protected, inherited]


Member Data Documentation

bool Connection::_brokenPipe [protected, inherited]

Socket* Connection::_mySock [protected, inherited]

ostream* Connection::_out [protected, inherited]


The documentation for this class was generated from the following files:
Generated on Wed Nov 21 12:20:37 2007 for OPeNDAP Back End Server (BES) by  doxygen 1.4.7