Reference

ACE_WIN32_Asynch_Timer(3)

This class is posted to the completion port when a timer expires. When the complete method of this object is called, the handler's handle_timeout method will be called.

NAME

ACE_WIN32_Asynch_Timer - This class is posted to the completion port when a timer expires. When the complete method of this object is called, the handler's handle_timeout method will be called.

SYNOPSIS

#include <ace/WIN_Proactor.h>
class ACE_WIN32_Asynch_Timer : public ACE_WIN32_Asynch_Result
{
  public:
    friend class ACE_WIN32_Proactor;
  protected:
    ACE_WIN32_Asynch_Timer (
        ACE_Handler &handler,
        const void *act,
        const ACE_Time_Value &tv,
        ACE_HANDLE event = ACE_INVALID_HANDLE,
        int priority = 0,
        int signal_number = 0
        );
    virtual void complete (
        u_long bytes_transferred,
        int success,
        const void *completion_key,
        u_long error = 0
        );
    ACE_Time_Value time_;
};

PUBLIC MEMBERS

friend class ACE_WIN32_Proactor;

The factory method for this class is with the POSIX_Proactor class.

PROTECTED MEMBERS

ACE_WIN32_Asynch_Timer (
    ACE_Handler &handler,
    const void *act,
    const ACE_Time_Value &tv,
    ACE_HANDLE event = ACE_INVALID_HANDLE,
    int priority = 0,
    int signal_number = 0
    );

Constructor.

virtual void complete (
    u_long bytes_transferred,
    int success,
    const void *completion_key,
    u_long error = 0
    );

This method calls the handler's handle_timeout method.

ACE_Time_Value time_;

Time value requested by caller

AUTHOR

Irfan Pyarali ([email protected]), Tim Harrison ([email protected]) and Alexander Babu Arulanthu [email protected]

LIBRARY

ace