# Syntax and Semantics message Broccoli

**URL:** <https://community.zeek.org/t/syntax-and-semantics-message-broccoli/4550>\
**Category:** Zeek\
**Created:** [December 13, 2016, 10:50pm UTC](https://community.zeek.org/t/syntax-and-semantics-message-broccoli/4550 "2016-12-13T22:50:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alberto\_Ciolini](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@Alberto\_Ciolini](https://community.zeek.org/u/Alberto_Ciolini)\
**Post date:** [December 13, 2016, 10:50pm UTC](https://community.zeek.org/t/syntax-and-semantics-message-broccoli/4550/1 "2016-12-13T22:50:10Z")

</div>

I have to develop a program, using Broccoli, that communicates with Bro which installed on raspberry pi. My question is if there is a standard for syntax and semantics for message that Broccoli and Bro send each other.  
How messages are sent from broccoli to bro?

---

<div class="post-metadata">

**Author:** ![johanna](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@johanna](https://community.zeek.org/u/johanna)\
**Post date:** [January 3, 2017, 10:35am UTC](https://community.zeek.org/t/syntax-and-semantics-message-broccoli/4550/2 "2017-01-03T10:35:19Z")

</div>

Hi Alberto,

the messages that are exchanged are basically Bro events. So you can  
send/receive any kind of data that you can usually send/receive in Bro  
events (with a small number of exceptions that you will probably not care  
about - I don't think that broccoli supports opaques, e.g.).

The best way get started at this is probably to look at the test folder in  
broccoli, which has a few C programs and Bro scripts that exchange data.

Note that there also is a newer communication library (named Broker) that  
can be used to do basically the same job - the API is not quite finished  
yet though, but at some point of time you might have to port things over  
to it.

Johanna

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:44pm UTC](https://community.zeek.org/t/syntax-and-semantics-message-broccoli/4550/3 "2022-05-06T15:44:24Z")

</div>

Closed on May 6, 2022, 3:44pm UTC


