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, LPVOID lpSecurity=NULL)
virtual ~CWin32Event ()
virtual BOOL IsFirst () const

Protected Member Functions

virtual HANDLE GetHandle () const
 CWin32Event (BOOL bInitialState, BOOL bManualReset, const char *pEventName, bool bLater)
void SetHandle (HANDLE hEvent)
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,
LPVOID  lpSecurity = NULL 
)

Definition at line 49 of file Win32Event.cpp.

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

CWin32Event::~CWin32Event (  )  [virtual]

Definition at line 83 of file Win32Event.cpp.

00084 {
00085     if (m_hEvent)
00086         CloseHandle(m_hEvent);
00087 }

CWin32Event::CWin32Event ( BOOL  bInitialState,
BOOL  bManualReset,
const char *  pEventName,
bool  bLater 
) [protected]

Definition at line 73 of file Win32Event.cpp.

00076                                      : CGenericEvent(bInitialState,
00077                                                      bManualReset,
00078                                                      pEventName),
00079                                        m_hEvent(NULL)
00080 {
00081 }


Member Function Documentation

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

Implements CWaitableObject.

Definition at line 112 of file Win32Event.cpp.

00113 {
00114     return m_hEvent;
00115 }

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

00135 {
00136     rOverlapped.hEvent=m_hEvent;
00137 }

void CWin32Event::Pulse (  )  [virtual]

Implements CGenericEvent.

Definition at line 123 of file Win32Event.cpp.

00124 {
00125     if (m_hEvent)
00126         PulseEvent(m_hEvent);
00127 }

void CWin32Event::ReleaseObject (  )  [virtual]

Implements CWaitableObject.

Definition at line 129 of file Win32Event.cpp.

00130 {
00131     Reset();
00132 }

void CWin32Event::Reset (  )  [virtual]

Implements CGenericEvent.

Definition at line 117 of file Win32Event.cpp.

00118 {
00119     if (m_hEvent)
00120         ResetEvent(m_hEvent);
00121 }

void CWin32Event::Set (  )  [virtual]

Implements CGenericEvent.

Definition at line 94 of file Win32Event.cpp.

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

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

Definition at line 49 of file WaitableObject.cpp.

00050 {
00051     m_bFirst=TRUE;
00052 }

void CWin32Event::SetHandle ( HANDLE  hEvent  )  [protected]

Definition at line 89 of file Win32Event.cpp.

00090 {
00091     m_hEvent=hEvent;
00092 }

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

Implements CGenericEvent.

Definition at line 100 of file Win32Event.cpp.

00101 {
00102     DWORD dwWaitResult;
00103 
00104     //Wait for the mutex
00105     dwWaitResult=WaitForSingleObject(m_hEvent,
00106                                      ulMSTimeout);
00107 
00108     //Check why did we quit
00109     return dwWaitResult==WAIT_TIMEOUT;
00110 }


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