#include <Connection.h>
Inheritance diagram for Connection:
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 Socket * | getSocket () |
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 |
Definition at line 45 of file Connection.h.
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.
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] |
virtual ostream* Connection::getOutputStream | ( | ) | [inline, virtual] |
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
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:
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().