
13 Dec
2005
13 Dec
'05
11:52 a.m.
Hi Chris
I know that's not correct asio - but what's a recommended way to achieve this without wrapping each method of the interface.
I haven't really thought about it that deeply, but since you talk about a fan-out, cannot the dispatcher wrap be done on a function just before the fan-out occurs? I.e. a function that takes a complete message before a decision about what type it is has been made -- before the one becomes many?
Yes, i believe thats necessary. Problem is - whats a clean way for the recipient of the fanned out callbacks to control the dispatcher policy. (see post about polymorphic_dispatcher for one approach). Cheers Simon