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


CWin32Event Class Reference

#include <Win32Event.h>

Inheritance diagram for CWin32Event:
Collaboration diagram for CWin32Event:

List of all members.


Public Member Functions

void PopulateOverlapped (OVERLAPPED &rOverlapped)
virtual void ReleaseObject ()
virtual void Pulse ()
virtual void Set ()
virtual void Reset ()
virtual BOOL Wait (unsigned long ulMSTimeout=INFINITE)
 CWin32Event (BOOL bInitialState=FALSE, BOOL bManualReset=FALSE, const char *pEventName=NULL)
virtual ~CWin32Event ()
virtual BOOL IsFirst () const

Protected Member Functions

virtual HANDLE GetHandle () const
void SetFirst ()

Detailed Description

Definition at line 47 of file Win32Event.h.


Constructor & Destructor Documentation

KOMODIA_NAMESPACE_START CWin32Event::CWin32Event ( BOOL  bInitialState = FALSE,
BOOL  bManualReset = FALSE,
const char *  pEventName = NULL 
)

Definition at line 49 of file Win32Event.cpp.

00051                                                  : CGenericEvent(bInitialState,
00052                                                                  bManualReset,
00053                                                                  pEventName),
00054                                                    m_hEvent(NULL)
00055 {
00056     //Create the event
00057     m_hEvent=CreateEvent(NULL,
00058                          bManualReset,
00059                          bInitialState,
00060                          pEventName);
00061 
00062     //Do we have the event
00063     if (!m_hEvent)
00064         throw std::string("Failed to create event!");
00065 
00066     //Check if we are the owners
00067     if (pEventName && 
00068         GetLastError()!=ERROR_ALREADY_EXISTS)
00069         SetFirst();
00070 }

CWin32Event::~CWin32Event (  )  [virtual]

Definition at line 72 of file Win32Event.cpp.

00073 {
00074     if (m_hEvent)
00075         CloseHandle(m_hEvent);
00076 }


Member Function Documentation

HANDLE CWin32Event::GetHandle (  )  const [protected, virtual]

Implements CWaitableObject.

Definition at line 96 of file Win32Event.cpp.

00097 {
00098     return m_hEvent;
00099 }

BOOL CWaitableObject::IsFirst (  )  const [virtual, inherited]

Definition at line 54 of file WaitableObject.cpp.

00055 {
00056     return m_bFirst;
00057 }

void CWin32Event::PopulateOverlapped ( OVERLAPPED &  rOverlapped  ) 

Definition at line 118 of file Win32Event.cpp.

00119 {
00120     rOverlapped.hEvent=m_hEvent;
00121 }

void CWin32Event::Pulse (  )  [virtual]

Implements CGenericEvent.

Definition at line 107 of file Win32Event.cpp.

00108 {
00109     if (m_hEvent)
00110         PulseEvent(m_hEvent);
00111 }

void CWin32Event::ReleaseObject (  )  [virtual]

Implements CWaitableObject.

Definition at line 113 of file Win32Event.cpp.

00114 {
00115     Reset();
00116 }

void CWin32Event::Reset (  )  [virtual]

Implements CGenericEvent.

Definition at line 101 of file Win32Event.cpp.

00102 {
00103     if (m_hEvent)
00104         ResetEvent(m_hEvent);
00105 }

void CWin32Event::Set (  )  [virtual]

Implements CGenericEvent.

Definition at line 78 of file Win32Event.cpp.

00079 {
00080     if (m_hEvent)
00081         SetEvent(m_hEvent);
00082 }

void CWaitableObject::SetFirst (  )  [protected, inherited]

Definition at line 49 of file WaitableObject.cpp.

00050 {
00051     m_bFirst=TRUE;
00052 }

BOOL CWin32Event::Wait ( unsigned long  ulMSTimeout = INFINITE  )  [virtual]

Implements CGenericEvent.

Definition at line 84 of file Win32Event.cpp.

00085 {
00086     DWORD dwWaitResult;
00087 
00088     //Wait for the mutex
00089     dwWaitResult=WaitForSingleObject(m_hEvent,
00090                                      ulMSTimeout);
00091 
00092     //Check why did we quit
00093     return dwWaitResult==WAIT_TIMEOUT;
00094 }


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