[Bro] Question about Broker-Enabled Communication Framework

Ren, Wenyu wren3 at illinois.edu
Mon Mar 6 12:04:33 PST 2017


I believe I had broker installed separately. Does that mean I still need to build bro again with the option?

Thanks.
________________________________________
From: Thayer, Daniel N
Sent: Monday, March 06, 2017 1:58 PM
To: Ren, Wenyu; bro at bro.org
Subject: Re: [Bro] Question about Broker-Enabled Communication Framework

Did you build Bro with the "--enable-broker" option?

./configure --enable-broker
make
make install


On 3/6/17 1:48 PM, Ren, Wenyu wrote:
> Hi everyone,
>
> Recently I am learning to use the Broker-Enabled Communication Framework. When I tried to run an example in the document, I encountered a problem saying "value used but not set". Might be a silly question, but anyone have any idea?
>
> Here is my codes:
>
> const broker_port: port = 9999/tcp &redef;
> redef exit_only_after_terminate = T;
> redef Broker::endpoint_name = "connector";
> global my_auto_event: event(msg: string, c: count);
>
> event bro_init()
>     {
>     Broker::enable();
>     Broker::connect("127.0.0.1", broker_port, 1sec);
>     Broker::auto_event("bro/event/my_auto_event", my_auto_event);
>     }
>
> event Broker::outgoing_connection_established(peer_address: string,
>                                             peer_port: port,
>                                             peer_name: string)
>     {
>     print "Broker::outgoing_connection_established",
>           peer_address, peer_port, peer_name;
>     event my_auto_event("stuff", 88);
>     event my_auto_event("more stuff", 51);
>     }
>
> event Broker::outgoing_connection_broken(peer_address: string,
>                                        peer_port: port)
>     {
>     terminate();
>     }
>
>
> And here is the problem:
>
> bro events_connector.bro
> error in ./events_connector.bro, line 8: value used but not set (Broker::enable)
> error in ./events_connector.bro, line 9: value used but not set (Broker::connect)
> error in ./events_connector.bro, line 10: value used but not set (Broker::auto_event)
>
>
> Thanks a lot.
>
> Wenyu
>
> _______________________________________________
> Bro mailing list
> bro at bro-ids.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro
>



More information about the Bro mailing list