Connection Class Reference

#include <Connection.h>

Inheritance diagram for Connection:

Inheritance graph
[legend]
Collaboration diagram for Connection:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~Connection ()
virtual void initConnection ()=0
virtual void closeConnection ()=0
virtual void send (const string &buffer)=0
virtual void sendExit ()=0
virtual bool receive (ostream *strm=0)=0
virtual SocketgetSocket ()
virtual bool isConnected ()
virtual void setOutputStream (ostream *strm)
virtual ostream * getOutputStream ()
virtual void brokenPipe ()
virtual void dump (ostream &strm) const
 dumps information about this object

Protected Member Functions

 Connection ()

Protected Attributes

Socket_mySock
ostream * _out
bool _brokenPipe

Detailed Description

Definition at line 45 of file Connection.h.


Constructor & Destructor Documentation

Connection::Connection (  )  [inline, protected]

Definition at line 52 of file Connection.h.

virtual Connection::~Connection (  )  [inline, virtual]

Definition at line 57 of file Connection.h.


Member Function Documentation

virtual void Connection::initConnection (  )  [pure virtual]

Implemented in PPTClient, PPTConnection, PPTServer, SSLClient, and SSLServer.

virtual void Connection::closeConnection (  )  [pure virtual]

Implemented in PPTClient, PPTConnection, PPTServer, and SSLConnection.

Referenced by BESServerHandler::handle().

virtual void Connection::send ( const string &  buffer  )  [pure virtual]

Implemented in PPTConnection, and SSLConnection.

virtual void Connection::sendExit (  )  [pure virtual]

Implemented in PPTConnection, and SSLConnection.

virtual bool Connection::receive ( ostream *  strm = 0  )  [pure virtual]

Implemented in PPTConnection, and SSLConnection.

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

Definition at line 66 of file Connection.h.

References _mySock.

Referenced by PPTConnection::readBufferNonBlocking().

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

Definition at line 71 of file Connection.h.

References _mySock, and Socket::isConnected().

Referenced by CmdClient::isConnected().

Here is the call graph for this function:

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

Definition at line 78 of file Connection.h.

References _out.

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

Definition at line 82 of file Connection.h.

References _out.

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

Definition at line 87 of file Connection.h.

References _brokenPipe.

Referenced by CmdClient::brokenPipe().

void Connection::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

Implements BESObj.

Reimplemented in PPTClient, PPTConnection, PPTServer, SSLClient, SSLConnection, and SSLServer.

Definition at line 42 of file Connection.cc.

References _brokenPipe, _mySock, _out, Socket::dump(), BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().

Referenced by SSLConnection::dump(), and PPTConnection::dump().

Here is the call graph for this function:


Member Data Documentation

Socket* Connection::_mySock [protected]

Definition at line 48 of file Connection.h.

Referenced by PPTServer::closeConnection(), PPTClient::closeConnection(), dump(), getSocket(), PPTServer::initConnection(), isConnected(), PPTClient::PPTClient(), PPTConnection::readBuffer(), PPTConnection::writeBuffer(), and PPTClient::~PPTClient().

ostream* Connection::_out [protected]

Definition at line 49 of file Connection.h.

Referenced by dump(), getOutputStream(), PPTConnection::receive(), and setOutputStream().

bool Connection::_brokenPipe [protected]

Definition at line 50 of file Connection.h.

Referenced by brokenPipe(), PPTClient::closeConnection(), and dump().


The documentation for this class was generated from the following files:
Generated on Wed Aug 29 03:20:19 2007 for OPeNDAP Back End Server (BES) by  doxygen 1.5.2