OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
Connection Class Referenceabstract

#include <Connection.h>

Inheritance diagram for Connection:
Inheritance graph
Collaboration diagram for Connection:
Collaboration graph

Public Member Functions

virtual void brokenPipe ()
 
virtual void closeConnection ()=0
 
virtual void dump (ostream &strm) const
 dumps information about this object More...
 
virtual string exit ()=0
 
virtual ostream * getOutputStream ()
 
virtual unsigned int getRecvChunkSize ()=0
 
virtual unsigned int getSendChunkSize ()=0
 
virtual SocketgetSocket ()
 
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
 

Detailed Description

Definition at line 47 of file Connection.h.

Constructor & Destructor Documentation

◆ Connection()

Connection::Connection ( )
inlineprotected

Definition at line 54 of file Connection.h.

References send(), and sendChunk().

Here is the call graph for this function:

◆ ~Connection()

virtual Connection::~Connection ( )
inlinevirtual

Definition at line 63 of file Connection.h.

References closeConnection(), exit(), initConnection(), receive(), send(), sendExit(), and sendExtensions().

Here is the call graph for this function:

Member Function Documentation

◆ brokenPipe()

virtual void Connection::brokenPipe ( )
inlinevirtual

Definition at line 98 of file Connection.h.

References dump(), getRecvChunkSize(), and getSendChunkSize().

Referenced by CmdClient::brokenPipe().

Here is the call graph for this function:

◆ closeConnection()

virtual void Connection::closeConnection ( )
pure virtual

◆ dump()

void Connection::dump ( ostream &  strm) const
virtual

dumps information about this object

Displays the pointer value of this instance

Parameters
strmC++ i/o stream to dump the information to

Implements BESObj.

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

Definition at line 42 of file Connection.cc.

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

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

Here is the call graph for this function:

◆ exit()

virtual string Connection::exit ( )
pure virtual

Implemented in PPTConnection, and SSLConnection.

Referenced by BESServerHandler::handle(), and ~Connection().

◆ getOutputStream()

virtual ostream* Connection::getOutputStream ( )
inlinevirtual

Definition at line 93 of file Connection.h.

References _out.

◆ getRecvChunkSize()

virtual unsigned int Connection::getRecvChunkSize ( )
pure virtual

Implemented in PPTConnection, and SSLConnection.

Referenced by brokenPipe().

◆ getSendChunkSize()

virtual unsigned int Connection::getSendChunkSize ( )
pure virtual

Implemented in PPTConnection, and SSLConnection.

Referenced by brokenPipe(), and BESServerHandler::handle().

◆ getSocket()

virtual Socket* Connection::getSocket ( )
inlinevirtual

Definition at line 77 of file Connection.h.

References _mySock.

Referenced by BESServerHandler::handle(), and PPTConnection::readBufferNonBlocking().

◆ initConnection()

virtual void Connection::initConnection ( )
pure virtual

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

Referenced by ~Connection().

◆ isConnected()

virtual bool Connection::isConnected ( )
inlinevirtual

Definition at line 82 of file Connection.h.

References Socket::isConnected().

Referenced by CmdClient::isConnected().

Here is the call graph for this function:

◆ receive()

virtual bool Connection::receive ( map< string, string > &  extensions,
ostream *  strm = 0 
)
pure virtual

Implemented in PPTConnection, and SSLConnection.

Referenced by BESServerHandler::handle(), and ~Connection().

◆ send() [1/2]

virtual void Connection::send ( const string &  buffer)
protectedpure virtual

Implemented in PPTConnection, and SSLConnection.

Referenced by Connection(), and ~Connection().

◆ send() [2/2]

virtual void Connection::send ( const string &  buffer,
map< string, string > &  extensions 
)
pure virtual

Implemented in PPTConnection, and SSLConnection.

◆ sendChunk()

virtual void Connection::sendChunk ( const string &  buffer,
map< string, string > &  extensions 
)
protectedpure virtual

Implemented in SSLConnection.

Referenced by Connection().

◆ sendExit()

virtual void Connection::sendExit ( )
pure virtual

Implemented in PPTConnection, and SSLConnection.

Referenced by ~Connection().

◆ sendExtensions()

virtual void Connection::sendExtensions ( map< string, string > &  extensions)
pure virtual

Implemented in PPTConnection, and SSLConnection.

Referenced by BESServerHandler::handle(), and ~Connection().

◆ setOutputStream()

virtual void Connection::setOutputStream ( ostream *  strm)
inlinevirtual

Definition at line 89 of file Connection.h.

Member Data Documentation

◆ _brokenPipe

bool Connection::_brokenPipe
protected

Definition at line 52 of file Connection.h.

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

◆ _mySock

◆ _out

ostream* Connection::_out
protected

Definition at line 51 of file Connection.h.

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


The documentation for this class was generated from the following files: