NetBee Samples
All the samples include an 'help' screen that will appear when the program is launched. Samples are in the bin/ folder of the NetBee Developer's Pack.
NetBee Samples
- PacketDecoder: it shows how to use the Packet Decoder module and how to save the results of this process on disk.
- PDMLReader: it shows how to create and manage PDML (Packet Details Markup Language) files, i.e. files that contain fully decoded network packets.
- PSMLReader: it shows how to create and manage PSML (Packet Summary Markup Language) files, i.e. files that contain a brief summary of each decoded packet.
- PDMLFieldExtractor: it shows how to extract fields properties (e.g. the field value) from within a decoded packet. It is based on the Packet Decoder module.
- FieldExtractor: it shows how to extract fields properties (e.g. the field value) from a packet on a file (or on a live capture). It is based on the NetPFL + NetVM technologies.
- NetPDLUtils: it shows how to use the conversion functions provided by NetBee, which aims at converting the value of a field from its 'printable' format to the 'internal' format used by machines, i.e. the hexadecimal dump.
- DownloadNetPDLDB: this sample shows how to use the automatic update of the NetPDL database from the online repository.
- NetPDLProtoDBDump: it shows how to interact with the NetPDL protocol database in order to extract information related to the format of the protocols described in it.
NetBee Samples devoted to Packet Processing
- InterfaceList: it shows how to get a list of network devices (either local network interfaces, or network interfaces installed on a remote system, or a list of files containing packet dumps present within a given folder on the system). These network devices can be opened for further processing (e.g. packet filtering).
- PacketCapture: it shows how to capture and filter packets from a network device.
- FilterCompiler: it shows how to compile a NetPDL-based filter into NetVM code.
- NBeeNetVMPull: it shows how the NetBee API works; the packets are processed by a single NetPE that performs IP packets filtering based on pull connections. Packets are generated internally.
- NBeeNetVMPush: it shows how the NetBee API works; the packets are processed by a single NetPE that performs IP packets filtering based on push connections. Packets are generated internally.
- NBeeNetVMPullPcap: it shows how the NetBee API works; the packets are processed by a single NetPE that performs IP packets filtering based on pull connections. The packets sent to the machine are taken from a winpcap adapter.
NetVM: Network Processing Virtual Machine
- NetVMPullIP: it shows how the NetVM control plane works; the packets are processed by a single NetPE that performs IP packets filtering; based on pull connections. The packets are generated internally.
- NetVMPushIP: it shows how the NetVM control plane works; the packets are processed by a single NetPE that performs IP packets filtering; based on push connections. The packets are generated internally.
- NetVMPcap: it shows how the NetVM control plane works; the packets are processed by a single NetPE that performs IP packets filtering; based on push connections. The packets sent to the machine are taken from a libpcap capture.
Cross-platform socket utilities (IPv4-IPv6)
- SockUtilsTest: it shows how to use the
nbsockutilscross-platform socket functions. This module can be used to create programs that use IP and IPv6 transport and that run on several platform seamlessly.