about event handle

Wang Shaofu wsffree at hotmail.com
Thu Sep 5 18:45:18 PDT 2002


Hi
Good morning!
I make the following changes:
in main(...):add some code like
                           Func * wsf;
                           wsf=internal_func("wsf");

in bro.init:add a line as 
                           global wsf: event (msg: string); 
in login.bro: add a event as
                           event wsf (msg: string)
                                {
                                 print msg;
                                 }
And when I invoke bro : ./bro -i eth0 login.bro , bro does not work , with 
the error information :
              lin1: internal error: internal variable wsf missing
              Aborted .
Did I get the right way of creating and using event handle?
Any help is welcome.
Have a nice day.
Ciao
                       Cloud

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: 
http://messenger.microsoft.com/cn




More information about the Bro mailing list