Compile instruction
Using MS Visual C++ 6.0 to open the workspace file, SAX.dsw
Set up for using winpcap library:
In project setting à C/C++, add WPCAP in the Preprocessor definition.
In project setting à Link, add wsock32.lib and wpcap.lib to the library module.
In Tools à Option à Directories, add the path to wpdpack\include for include files, add the path to wpdpack\lib for library files. Note that the wpdpack folder is in SAX folder.
Set up for using Stlport library:
In Tools à Option à Directories, add the path to STLport-4.6.2\stlport for the include files. REMEMBER TO PUT THE PATH OF STLPORT ON THE TOP OF YOUR LIST.
In Tools à Option à Directories, add the path to STLport-4.6.2\lib for the library files.
Compile the program: In MS Visual C++ 6.0, go to Build à Rebuild all to compile the program. Note that, in order to run the program, you must put packet.dll, wanpacket.dll and wpcap.dll in the same folder with SAX.exe. Besides, winpcap is needed to run SAX online.
There are two options of using the program:
Online mode: The program listens to the network card and extracts surfing action online. To use the program in Online mode, define _ON_LINE_ in the file SAX.cpp before compiling.
Offline mode: The program extracts surfing action from an offline trace. To use the program in Offline mode, delete/comment the line “#define _ON_LINE_” in SAX.cpp before compiling.
Tran Dinh Nguyen 16-08-2005