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


CReferenceSmartPtr Class Reference

#include <ReferenceCounting.h>

Collaboration diagram for CReferenceSmartPtr:

List of all members.


Public Member Functions

const CReferenceCountingDetach ()
long AddRef ()
long ReleaseRef ()
 CReferenceSmartPtr (const CReferenceCounting *pCounter, bool bAutoAdd=true)
virtual ~CReferenceSmartPtr ()

Detailed Description

Definition at line 117 of file ReferenceCounting.h.


Constructor & Destructor Documentation

KOMODIA_NAMESPACE_START CReferenceSmartPtr::CReferenceSmartPtr ( const CReferenceCounting pCounter,
bool  bAutoAdd = true 
)

Definition at line 49 of file ReferenceCounting.cpp.

00050                                                       : m_pCounter(pCounter)
00051 {
00052     //Do we need to add
00053     if (bAutoAdd)
00054         //Add the ref
00055         AddRef();
00056 }

CReferenceSmartPtr::~CReferenceSmartPtr (  )  [virtual]

Definition at line 58 of file ReferenceCounting.cpp.

00059 {
00060     //Release the ref
00061     ReleaseRef();
00062 }


Member Function Documentation

long CReferenceSmartPtr::AddRef (  ) 

Definition at line 77 of file ReferenceCounting.cpp.

00078 {
00079     if (m_pCounter)
00080         return m_pCounter->AddRef();
00081     else
00082         return 0;
00083 }

const CReferenceCounting * CReferenceSmartPtr::Detach (  ) 

Definition at line 64 of file ReferenceCounting.cpp.

00065 {
00066     //Save to tmp
00067     const CReferenceCounting* pTmp;
00068     pTmp=m_pCounter;
00069 
00070     //Clear out var
00071     m_pCounter=NULL;
00072 
00073     //Done
00074     return pTmp;
00075 }

long CReferenceSmartPtr::ReleaseRef (  ) 

Definition at line 85 of file ReferenceCounting.cpp.

00086 {
00087     if (m_pCounter)
00088         return m_pCounter->ReleaseRef();
00089     else
00090         return 0;
00091 }


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