Retail products


Traffic interception SDK

Control every TCP/IP network connection

  • Route connections via proxy
  • Redirect connections and modify the data
  • Block connections and applications
SSL interception SDK

View SSL in plaintext and modify it

  • View the SSL stream decrypted in plaintext
  • Redirect SSL connection and modify decrypted data
  • Browser shows "SSL lock" without warnings

Documentation


CReferenceCounting Class Reference

#include <ReferenceCounting.h>

Collaboration diagram for CReferenceCounting:

List of all members.


Public Member Functions

virtual long AddRef () const
virtual long ReleaseRef () const
virtual void Destruct () const
CReferenceCountingoperator= (const CReferenceCounting &rReference)
 CReferenceCounting ()
 CReferenceCounting (const CReferenceCounting &rReference)
virtual ~CReferenceCounting ()

Detailed Description

Definition at line 145 of file ReferenceCounting.h.


Constructor & Destructor Documentation

CReferenceCounting::CReferenceCounting (  ) 

Definition at line 97 of file ReferenceCounting.cpp.

00097                                        : m_lCount(1)
00098 {
00099 }

CReferenceCounting::CReferenceCounting ( const CReferenceCounting rReference  ) 

Definition at line 101 of file ReferenceCounting.cpp.

00101                                                                            : m_lCount(1)
00102 {
00103 }

CReferenceCounting::~CReferenceCounting (  )  [virtual]

Definition at line 105 of file ReferenceCounting.cpp.

00106 {
00107 }


Member Function Documentation

long CReferenceCounting::AddRef (  )  const [virtual]

Definition at line 110 of file ReferenceCounting.cpp.

00111 {
00112     //Add a reference
00113     return ++m_lCount;
00114 }

void CReferenceCounting::Destruct (  )  const [virtual]

Definition at line 142 of file ReferenceCounting.cpp.

00143 {
00144     //Delete the object
00145     delete this;
00146 }

CReferenceCounting & CReferenceCounting::operator= ( const CReferenceCounting rReference  ) 

Definition at line 148 of file ReferenceCounting.cpp.

00149 {
00150     //Set zero reference count
00151     m_lCount=1;
00152 
00153     //Done
00154     return *this;
00155 }

long CReferenceCounting::ReleaseRef (  )  const [virtual]

Definition at line 116 of file ReferenceCounting.cpp.

00117 {
00118     //Was it zero
00119     if (!m_lCount)
00120         return 0;
00121 
00122     //Decrese the count
00123     --m_lCount;
00124 
00125     //Check if we need to destruct
00126     if (m_lCount<=0)
00127     {
00128         //Save the count
00129         long lCount;
00130         lCount=m_lCount;
00131 
00132         //Delete this class
00133         Destruct();
00134 
00135         //Done
00136         return lCount;
00137     }
00138     else
00139         return m_lCount;
00140 }


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