[ace-users] Reactor and multiple handling

Beck, Duane duane.beck at lmco.com
Thu Aug 2 14:00:12 CDT 2007

I haven't tried this, but you might consider specializing ACE_Event_Handler to use a Chain of Responsibility or Subject/Observer pattern to broadcast reactor events to multiple event handlers.  Be careful with assumptions about event handler call synchronization if you're multi-threaded though.


From: ace-users-bounces at cse.wustl.edu on behalf of Kordonsky Alex
Sent: Thu 8/2/2007 03:32
To: ace-users at cs.wustl.edu
Subject: [ace-users] Reactor and multiple handling


Is it possible register in reactor more than one event handler object on the same event .

For example: socket receives some data and reactor calls sequential all handlers that registered on this event.

Actually for all this event handler get_handle() method return the same ACE_HANDLE object.


Alexander Kordonsky

Senior Software Engineer

Elbit System Group

e-mail : alex_k at elbit.co.il

tel      : 972-4-831-62-29

mobile: 972-54-999-62-29

This e-mail message has been sent by Elbit Systems Ltd. 
and is for the use of the intended recipients only.
The message may contain privileged or commercially sensitive information .
If you are not the intended recipient you are hereby notified that any use,
distribution or copying of this communication is strictly prohibited,
and you are requested to delete the e-mail and any attachments
and notify the sender immediately.

More information about the Ace-users mailing list