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

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 47 of file Win32Event.cpp.

00049                                                  : CGenericEvent(bInitialState,
00050                                                                  bManualReset,
00051                                                                  pEventName),
00052                                                    m_hEvent(NULL)
00053 {
00054     //Create the event
00055     m_hEvent=CreateEvent(NULL,
00056                          bManualReset,
00057                          bInitialState,
00058                          pEventName);
00059 
00060     //Check if we are the owners
00061     if (pEventName && 
00062         GetLastError()!=ERROR_ALREADY_EXISTS)
00063         SetFirst();
00064 }

CWin32Event::~CWin32Event (  )  [virtual]

Definition at line 66 of file Win32Event.cpp.

00067 {
00068     if (!m_hEvent)
00069         CloseHandle(m_hEvent);
00070 }


Member Function Documentation

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

Implements CWaitableObject.

Definition at line 89 of file Win32Event.cpp.

00090 {
00091     return m_hEvent;
00092 }

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

Definition at line 54 of file WaitableObject.cpp.

00055 {
00056     return m_bFirst;
00057 }

void CWin32Event::Pulse (  )  [virtual]

Implements CGenericEvent.

Definition at line 100 of file Win32Event.cpp.

00101 {
00102     if (m_hEvent)
00103         PulseEvent(m_hEvent);
00104 }

void CWin32Event::ReleaseObject (  )  [virtual]

Implements CWaitableObject.

Definition at line 106 of file Win32Event.cpp.

00107 {
00108     Reset();
00109 }

void CWin32Event::Reset (  )  [virtual]

Implements CGenericEvent.

Definition at line 94 of file Win32Event.cpp.

00095 {
00096     if (m_hEvent)
00097         ResetEvent(m_hEvent);
00098 }

void CWin32Event::Set (  )  [virtual]

Implements CGenericEvent.

Definition at line 72 of file Win32Event.cpp.

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

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 78 of file Win32Event.cpp.

00079 {
00080     DWORD dwWaitResult;
00081 
00082     //Wait for the mutex
00083     dwWaitResult=WaitForSingleObject(m_hEvent,ulMSTimeout);
00084 
00085     //Check why did we quit
00086     return dwWaitResult==WAIT_TIMEOUT;
00087 }


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