|
OPeNDAP Hyrax Back End Server (BES) Updated for version 3.8.3
|
#include <Connection.h>


Public Member Functions | |
| virtual void | brokenPipe () |
| virtual void | closeConnection ()=0 |
| virtual void | dump (ostream &strm) const |
| dumps information about this object | |
| virtual string | exit ()=0 |
| virtual ostream * | getOutputStream () |
| virtual unsigned int | getRecvChunkSize ()=0 |
| virtual unsigned int | getSendChunkSize ()=0 |
| virtual Socket * | getSocket () |
| virtual void | initConnection ()=0 |
| virtual bool | isConnected () |
| virtual bool | receive (map< string, string > &extensions, ostream *strm=0)=0 |
| virtual void | send (const string &buffer, map< string, string > &extensions)=0 |
| virtual void | sendExit ()=0 |
| virtual void | sendExtensions (map< string, string > &extensions)=0 |
| virtual void | setOutputStream (ostream *strm) |
| virtual | ~Connection () |
Protected Member Functions | |
| Connection () | |
| virtual void | send (const string &buffer)=0 |
| virtual void | sendChunk (const string &buffer, map< string, string > &extensions)=0 |
Protected Attributes | |
| bool | _brokenPipe |
| Socket * | _mySock |
| ostream * | _out |
Definition at line 47 of file Connection.h.
| Connection::Connection | ( | ) | [inline, protected] |
Definition at line 54 of file Connection.h.
| virtual Connection::~Connection | ( | ) | [inline, virtual] |
Definition at line 63 of file Connection.h.
| virtual void Connection::brokenPipe | ( | ) | [inline, virtual] |
Definition at line 98 of file Connection.h.
References _brokenPipe.
Referenced by CmdClient::brokenPipe().
| 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.
Definition at line 42 of file Connection.cc.
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] |
Definition at line 93 of file Connection.h.
References _out.
| virtual unsigned int Connection::getRecvChunkSize | ( | ) | [pure virtual] |
Implemented in PPTConnection, and SSLConnection.
| virtual unsigned int Connection::getSendChunkSize | ( | ) | [pure virtual] |
Implemented in PPTConnection, and SSLConnection.
| virtual Socket* Connection::getSocket | ( | ) | [inline, virtual] |
Definition at line 77 of file Connection.h.
References _mySock.
Referenced by PPTConnection::readBufferNonBlocking().
| virtual void Connection::initConnection | ( | ) | [pure virtual] |
Implemented in PPTClient, PPTConnection, PPTServer, SSLClient, and SSLServer.
| virtual bool Connection::isConnected | ( | ) | [inline, virtual] |
Definition at line 82 of file Connection.h.
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 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] |
Definition at line 89 of file Connection.h.
References _out.
bool Connection::_brokenPipe [protected] |
Definition at line 52 of file Connection.h.
Referenced by brokenPipe(), PPTClient::closeConnection(), and dump().
Socket* Connection::_mySock [protected] |
Definition at line 50 of file Connection.h.
Referenced by PPTServer::closeConnection(), PPTClient::closeConnection(), dump(), PPTConnection::getRecvChunkSize(), PPTConnection::getSendChunkSize(), getSocket(), PPTServer::initConnection(), isConnected(), PPTClient::PPTClient(), PPTConnection::receive(), PPTConnection::send(), and PPTClient::~PPTClient().
ostream* Connection::_out [protected] |
Definition at line 51 of file Connection.h.
Referenced by dump(), getOutputStream(), PPTConnection::receive(), and setOutputStream().