README
1This example shows how Oracle Berkeley DB can be used to implement a simple firewall. It consists of three parts.
2Message Generator - Simulates messages arriving to the application. It stops after 100,000 messages are generated.
3Firewall - Receives and filters the messages by dropping the messages found to be from blocked sites, and forwarding the messages from all other sites.
4Destination - Receives the messages forwarded by the firewall and prints out a statement each time it processes 10,000 messages.
5
6BUILD and RUN
7
8Windows
9
10To build this example build the Visual Studio examples ex_firewall, ex_firewall_dest, and ex_firewall_msg.
11
12To run the example first make sure the executeables can be located by your PATH environment variable. To run the example click or run the file RunFirewallExample.bat.
13
14Unix/Linux
15
16To build this example install Berkeley DB, then in the build_unix directory execute the command "make examples_c".
17
18To run execute the script RunFirewallExample.sh.