[ace-users] Reactor and multiple handling

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Thu Aug 2 16:02:29 CDT 2007


Hi Alexander,

> 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.

This is trivial to implement using ACE_Hash_Map_Manager.  There are
examples in 

ACE_ROOT/examples/ASX/Event_Server/Event_Server

and

ACE_ROOT/apps/Gateway/Gateway

Take care,

     Doug
-- 
Dr. Douglas C. Schmidt                       Professor and Associate Chair
Electrical Engineering and Computer Science  TEL: (615) 343-8197
Vanderbilt University                        WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203                          NET: d.schmidt at vanderbilt.edu



More information about the Ace-users mailing list