User`s guide
KwikNet Virtual File System
K
A
DAK
251
7.3 Using the VFS Generator
The KwikNet VFS Generator is a utility program which will create a Virtual File System
for use with the KwikNet TCP/IP Stack. The VFS Generator is provided ready for use on
a PC or compatible running the Microsoft
®
MS-DOS
®
or Windows
®
operating system.
When KwikNet is installed on your hard disk, the VFS Generator utility program and its
related files are stored in directory VFSGEN in your KwikNet installation directory.
File Purpose
KN_VFG.EXE KwikNet VFS Generator (utility program)
KN_VFG.CT KwikNet VFS Template File
KN_VFG.UVF KwikNet VFS String File
The Virtual File System generation process is illustrated in the block diagram of Figure
7.3-1.
The VFS Generator reads the definition of your Virtual File System from your VFS
Definition File, a text file constructed as described in Chapter 7.2. A VFS String List is
constructed from the set of compression strings defined in your VFS Definition File or in
your optional VFS String File.
The VFS Generator then creates a set of one or more VFS Data Files using its VFS
Template File as a model for each. The data files are text files with names as specified
by the ...OUTFILE directives in your VFS Definition File. The VFS Data Files contain
the C language statements which, when compiled, will provide the content of your
Virtual File System.
The data for the virtual files in your Virtual File System is derived from the VFS source
files specified by the ...IN directives in your VFS Definition File.
Examples
The Virtual File System is delivered with two sets of HTML files and the VFS Definition
File needed to convert each set into a VFS Data File. The files are located in directories
VFSGEN\SAMPLE and VFSGEN\VFS_INFO in your KwikNet installation directory. Both sets
of files are for use with the
KwikNet WEB Sample Program.
File
VFSGEN\SAMPLE\KNWEBVFS.UVF is the VFS Definition File used to create the VFS
Data File KNWEBVFS.C which is compiled and linked with the KwikNet WEB Sample
Program.
File
VFSGEN\VFS_INFO\VFS_INFO.UVF is the VFS Definition File used to create an
alternate VFS Data File VFS_INFO.C for use with the WEB Sample Program. If you
browse the HTML document VFSGEN\VFS_INFO\VFS_USE.HTM, you will find a complete
description of the construction process to be followed to add this VFS to the
KwikNet
WEB Sample Program.