メイン   モジュール   デー タ構造   ファイルリスト   データフィールド   グローバル   関連ページ   注意事項   English

Packet.dll samples
[Packet Driver API developer's manual]

 

How to create an application that uses packet.dll

The creation of an application that uses packet.dll requires the following steps:

Remember that:

Sample programs

A couple of sample programs are provided to show how to use packet.dll. The source code of the examples, along with all the files needed to compile and run them, can be found in the Developer's Pack.

Testapp

This is a very simple capture program that tests packet.dll. It is a console application that once complied can be executed both under Win9x and under WinNTx. When executed, testapp gives to the user the possibility to choose one of the adapters installed on the machine, then it captures packets from the specified network adapter until a key is pressed, dumping the content of each packet on the screen. 

Traffic Generator

This example shows how to use packet.dll to send packets to the network. It receives three input parameters: the interface that will be used, the number of packets to send and their size. The generated packets will have 1:1:1:1:1:1 as source MAC address, and 2:2:2:2:2:2 as destination address. The 'multiple write' feature of the driver is used to obtain a higher transmit rate.

 


documentation. Copyright (c)2002-2003 Politecnico di Torino.
2005 translated by Telebusiness,Inc.
 All rights reserved.