Git Product home page Git Product logo

broker-application-templates's Introduction

Broker Application Templates

Bro IDS ships with a communication library, called broker.

This repo provides some general purpose templates to write applications, that communicate via broker.

The project is structured as follows (see the folders):

  • apps that send to a bro (app-to-bro)
  • apps that receive from a bro (bro-to-app)
  • apps that communicate solely via broker, without any bro instance (app-to-app)

Install

You need to install broker. Please refer to the official docs for any details. Also see the Dockerfile for an example.

The broker installation will bring two things:

  • shared object files / libraries to link against
  • python bindings

When calling make install with the default configuration it will put the shared object files in /usr/local/lib. So when you want to link against it (c++), then make sure you set your LD_LIBRARY_PATH accordingly, such that it includes /usr/local/lib. Python bindings will be put into /usr/lib/python3.<X>/site-packages/broker. Examples in this repo are meant to use python3 only.

Usage

Each directory comes with 2 application files

  • a python application
  • a c++ application

Compile the C++ files with

g++ -std=c++11 -lbroker -lcaf_core -lcaf_io -lcaf_openssl -o <executable name> <source.cc>

Optionally, you will find one or more .bro scripts in there, in case the example app is communicating to a bro instance. To use those .bro scripts you need to install bro. Or you put that into a container as well.

Bro

In case you have a bro installed, run the scripts with (example call):

/usr/local/bro/bin/bro ping-pong/ping_pong.bro

broker-application-templates's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.