Clean way to pass events from Bro to C++
José María González
chema at cs.berkeley.edu
Thu Jun 17 22:21:51 PDT 2004
On Thursday 17 June 2004 20:20, Ruoming Pang wrote:
> One way to solve this would be to remember the corresponding
> EventHandler's in BroFunc's. This can be done in ID::SetVal(), where we
> add BroFunc's to EventHandlers.
That sounds good, but, if we have two events with the
exact same body, won't they share the BroFunc?
> On the other hand, would it be possible to do the job without passing
> events? In the example below, we can instead have a predefined event
> (say, dns_result_ready). This is not as powerful as passing events, but
> does that give you what you want?
That's what I have now, but I'm not sure it's going to be
flexible enough.
-Chema
More information about the Bro
mailing list