Reference

ACE_Reactive_Strategy(3)

Defines the interface for specifying a Reactive concurrency strategy for a SVC_HANDLER.

NAME

ACE_Reactive_Strategy - Defines the interface for specifying a Reactive concurrency strategy for a SVC_HANDLER.

SYNOPSIS

#include <ace/ACE_Strategies_T.h>
template<class SVC_HANDLER>
class ACE_Reactive_Strategy : 
  public ACE_Concurrency_Strategy <SVC_HANDLER>
{
  public:
    ACE_Reactive_Strategy (int flags = 0);
    ACE_Reactive_Strategy (
        ACE_Reactor *reactor,
        ACE_Reactor_Mask = ACE_Event_Handler::READ_MASK,
        int flags = 0
        );
    virtual int open (
        ACE_Reactor *reactor,
        ACE_Reactor_Mask = ACE_Event_Handler::READ_MASK,
        int flags = 0
        );
    virtual ~ACE_Reactive_Strategy (void);
    virtual int activate_svc_handler (
        SVC_HANDLER *svc_handler,
        void *arg = 0
        );
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  protected:
    typedef ACE_Concurrency_Strategy<SVC_HANDLER> inherited;
    ACE_Reactor *reactor_;
    ACE_Reactor_Mask mask_;
};

DESCRIPTION

This class provides a strategy that registers the SVC_HANDLER with a Reactor.

Intialization and termination methods.

ACE_Reactive_Strategy (int flags = 0);

"Do-nothing constructor"

ACE_Reactive_Strategy (
    ACE_Reactor *reactor,
    ACE_Reactor_Mask = ACE_Event_Handler::READ_MASK,
    int flags = 0
    );

Initialize the strategy.

virtual int open (
    ACE_Reactor *reactor,
    ACE_Reactor_Mask = ACE_Event_Handler::READ_MASK,
    int flags = 0
    );

Initialize the strategy.

virtual ~ACE_Reactive_Strategy (void);

Destructor.

Factory method.

virtual int activate_svc_handler (
    SVC_HANDLER *svc_handler,
    void *arg = 0
    );

Activate the svc_handler by registering it with the Reactor and then calling it's open hook.

void dump (void) const;

Dump the state of an object.

ACE_ALLOC_HOOK_DECLARE;

Declare the dynamic allocation hooks.

AUTHOR

Doug Schmidt

LIBRARY

ace