Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

IoCompletion.h File Reference

Io Completion Port handling mechanism. More...

#include <OW32/windows.h>
#include <OW32/OW32Libs.h>

Go to the source code of this file.

Namespaces

namespace  OW32

Classes

class  OW32::CIoCompletion
 Model of a function in a class that handles IOCP notifications. More...

Defines

#define DLL_IMPLEMENT_IO_COMPLETION(className, declspec)
 Macro that implementions I/O completion with an OVERLAPPEDPLUS structure specific to the class, declared with the __declspec(dllexport) passed in.
#define IMPLEMENT_IO_COMPLETION(className)
 Macro that implementions I/O completion with an OVERLAPPEDPLUS structure specific to the class.


Detailed Description

Io Completion Port handling mechanism.


Define Documentation

#define DLL_IMPLEMENT_IO_COMPLETION className,
declspec   ) 
 

Value:

typedef void (className::*CompletionFn)(BOOL bRet, DWORD dwBytes, LPOVERLAPPED lpOS); \
    \ \
    struct declspec OVERLAPPEDPLUS : public OVERLAPPED \
    { \ \
        CompletionFn lpCompletion; \
    }; \
    \
    virtual void OnIoCompletion(BOOL bRet, DWORD dwBytes, LPOVERLAPPED lpOS) \
    { \
        OVERLAPPEDPLUS* lpOSPlus = (OVERLAPPEDPLUS*)lpOS; \
        (this->*(lpOSPlus->lpCompletion))(bRet, dwBytes, lpOS); \
    }
Macro that implementions I/O completion with an OVERLAPPEDPLUS structure specific to the class, declared with the __declspec(dllexport) passed in.

#define IMPLEMENT_IO_COMPLETION className   ) 
 

Value:

typedef void (className::*CompletionFn)(BOOL bRet, DWORD dwBytes, LPOVERLAPPED lpOS); \
    \ \
    struct OVERLAPPEDPLUS : public OVERLAPPED \
    { \ \
        CompletionFn lpCompletion; \
    }; \
    \
    virtual void OnIoCompletion(BOOL bRet, DWORD dwBytes, LPOVERLAPPED lpOS) \
    { \
        OVERLAPPEDPLUS* lpOSPlus = (OVERLAPPEDPLUS*)lpOS; \
        (this->*(lpOSPlus->lpCompletion))(bRet, dwBytes, lpOS); \
    }
Macro that implementions I/O completion with an OVERLAPPEDPLUS structure specific to the class.


Generated on Sun Jun 5 01:29:19 2005 for OW32 by  doxygen 1.3.9.1