• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..01-Jun-2020-

READMEH A D29-May-2020989 1811

RunFirewallExample.batH A D29-May-2020446 1211

RunFirewallExample.shH A D29-May-2020464 1814

firewall.cH A D29-May-20205.6 KiB196116

firewall_bdb_filters.cH A D29-May-20202.1 KiB9152

firewall_bdb_filters.hH A D29-May-20201.3 KiB4820

firewall_common_utils.cH A D29-May-20204.5 KiB185107

firewall_common_utils.hH A D29-May-20201.6 KiB6338

firewall_destination.cH A D29-May-20204 KiB179106

firewall_message_generator.cH A D29-May-20202.5 KiB10554

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.