#include <Connection.h>


Public Member Functions | |
| virtual | ~Connection () |
| virtual void | initConnection ()=0 |
| virtual void | closeConnection ()=0 |
| virtual string | exit ()=0 |
| virtual void | send (const string &buffer, map< string, string > &extensions)=0 |
| virtual void | sendExtensions (map< string, string > &extensions)=0 |
| virtual void | sendExit ()=0 |
| virtual bool | receive (map< string, string > &extensions, 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 () | |
| virtual void | send (const string &buffer)=0 |
| virtual void | sendChunk (const string &buffer, map< string, string > &extensions)=0 |
Protected Attributes | |
| Socket * | _mySock |
| ostream * | _out |
| bool | _brokenPipe |
| Connection::Connection | ( | ) | [inline, protected] |
| virtual Connection::~Connection | ( | ) | [inline, virtual] |
| virtual void Connection::brokenPipe | ( | ) | [inline, virtual] |
| virtual void Connection::closeConnection | ( | ) | [pure virtual] |
Implemented in PPTClient, PPTConnection, PPTServer, and SSLConnection.
Referenced by BESServerHandler::handle().
| 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.
References _brokenPipe, _mySock, _out, Socket::dump(), BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().

| virtual string Connection::exit | ( | ) | [pure virtual] |
Implemented in PPTConnection, and SSLConnection.
| virtual ostream* Connection::getOutputStream | ( | ) | [inline, virtual] |
References _out.
| virtual Socket* Connection::getSocket | ( | ) | [inline, virtual] |
| virtual void Connection::initConnection | ( | ) | [pure virtual] |
Implemented in PPTClient, PPTConnection, PPTServer, SSLClient, and SSLServer.
| virtual bool Connection::isConnected | ( | ) | [inline, virtual] |
References _mySock, and Socket::isConnected().
Referenced by CmdClient::isConnected().

| virtual bool Connection::receive | ( | map< string, string > & | extensions, | |
| ostream * | strm = 0 | |||
| ) | [pure virtual] |
Implemented in PPTConnection, and SSLConnection.
| virtual void Connection::send | ( | const string & | buffer, | |
| map< string, string > & | extensions | |||
| ) | [pure virtual] |
Implemented in PPTConnection, and SSLConnection.
| virtual void Connection::send | ( | const string & | buffer | ) | [protected, pure virtual] |
Implemented in PPTConnection, and SSLConnection.
| virtual void Connection::sendChunk | ( | const string & | buffer, | |
| map< string, string > & | extensions | |||
| ) | [protected, pure virtual] |
Implemented in PPTConnection, and SSLConnection.
| virtual void Connection::sendExit | ( | ) | [pure virtual] |
Implemented in PPTConnection, and SSLConnection.
| virtual void Connection::sendExtensions | ( | map< string, string > & | extensions | ) | [pure virtual] |
Implemented in PPTConnection, and SSLConnection.
| virtual void Connection::setOutputStream | ( | ostream * | strm | ) | [inline, virtual] |
References _out.
bool Connection::_brokenPipe [protected] |
Referenced by brokenPipe(), PPTClient::closeConnection(), and dump().
Socket* Connection::_mySock [protected] |
ostream* Connection::_out [protected] |
Referenced by dump(), getOutputStream(), PPTConnection::receive(), and setOutputStream().
1.5.8