Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

CTCPConnectionFailed Class Reference

#include <CTCPConnectionFailed.h>

List of all members.

Public Member Functions

 CTCPConnectionFailed (const STD(string)&host, const STD(string)&service, const char *pDoing)
 CTCPConnectionFailed (const CTCPConnectionFailed &rhs)
 ~CTCPConnectionFailed ()
 Destructor.
CTCPConnectionFailedoperator= (const CTCPConnectionFailed &rhs)
int operator== (const CTCPConnectionFailed &rhs)
 STD (string) getHost() const
 STD (string) getService() const
virtual const char * ReasonText () const

Protected Member Functions

void setHost (const STD(string)&rHost)
void setService (const STD(string)&rService)

Private Member Functions

 STD (string) m_Host
 Attempted peername.
 STD (string) m_Service
 Attempted connection point port.
 STD (string) m_ReasonText
 Reason text is built up here.


Detailed Description

Encapsulates a connection failure exception. Since connect(2) reports failure reasons through errno, this classs derives from CErrnoException.

Definition at line 304 of file CTCPConnectionFailed.h.


Constructor & Destructor Documentation

CTCPConnectionFailed::CTCPConnectionFailed const STD(string)&  host,
const STD(string)&  service,
const char *  pDoing
 

CTCPConnectionFailed::CTCPConnectionFailed const CTCPConnectionFailed rhs  ) 
 

Copy Constructor. Used by the compiler to create temporaries and by the throw statement to create a copy of the actual exception object to ensure that the exception remains in scope while it travels up the call stack searching for a handler.

Parameters:
rhs - The reference object which is being copy constructed.

Definition at line 319 of file CTCPConnectionFailed.cpp.

CTCPConnectionFailed::~CTCPConnectionFailed  )  [inline]
 

Destructor.

Definition at line 319 of file CTCPConnectionFailed.h.


Member Function Documentation

CTCPConnectionFailed & CTCPConnectionFailed::operator= const CTCPConnectionFailed rhs  ) 
 

Assignment. The functionality is the same as a copy constructor, however the target is a fully constructed object. We protect, therefore against assignment to *this, and since this is not a constructor, we cannot use initializers to assign our members.

Parameters:
rhs - The object we are being assigned to.

Definition at line 333 of file CTCPConnectionFailed.cpp.

int CTCPConnectionFailed::operator== const CTCPConnectionFailed rhs  ) 
 

Equality compare... This is essentially a member by member compare.

Parameters:
rhs - the object to which we are being compared.

Definition at line 347 of file CTCPConnectionFailed.cpp.

const char * CTCPConnectionFailed::ReasonText  )  const [virtual]
 

Returns a textual string describing the message. This is going to be something like: Failed to connect to host: m_Host on service port m_Service, CErrnoException::ReasonText().

Definition at line 360 of file CTCPConnectionFailed.cpp.

void CTCPConnectionFailed::setHost const STD(string)&  rHost  )  [inline, protected]
 

Definition at line 335 of file CTCPConnectionFailed.h.

void CTCPConnectionFailed::setService const STD(string)&  rService  )  [inline, protected]
 

Definition at line 337 of file CTCPConnectionFailed.h.

CTCPConnectionFailed::STD string   )  const [inline]
 

Definition at line 329 of file CTCPConnectionFailed.h.

CTCPConnectionFailed::STD string   )  const [inline]
 

Definition at line 327 of file CTCPConnectionFailed.h.

CTCPConnectionFailed::STD string   )  [mutable, private]
 

Reason text is built up here.

CTCPConnectionFailed::STD string   )  [private]
 

Attempted connection point port.

CTCPConnectionFailed::STD string   )  [private]
 

Attempted peername.


The documentation for this class was generated from the following files:
Generated on Thu Jan 6 16:58:44 2005 for Spectrodaq External Event Framework by  doxygen 1.3.9.1