User`s guide
KwikNet System Configuration
K
A
DAK
35
2. KwikNet System Configuration
2.1 Introduction
Creating an application which uses the KwikNet TCP/IP Stack is a two step process. First,
the
KwikNet Library must be constructed to reflect the options and features which your
application will require. If you wish, you can predefine one or more of the networks and
devices present in your target hardware. Finally, your application modules must be
linked with the KwikNet Library to create a load module suitable for execution in the
target processor.
With many portable network stacks, this process requires the tedious and error prone task
of editing a collection of files with which you have little familiarity. With KwikNet you
simply point and click using the KwikNet Configuration Builder, a Windows
®
utility
which greatly simplifies the process. You still have to pick the correct set of options and
define your particular network requirements but at least you are concentrating on what
you know best, your application.
KwikNet Library
The KwikNet Library must be constructed to reflect the options and features which your
application will require. This information is kept in a text file called the KwikNet Network
Parameter File which is created and edited for you by the KwikNet Configuration Builder.
This editing process is illustrated in Figure 2.1-1.
From the KwikNet Network Parameter File, say NETCFG.UP, the Builder will generate a
make specification file, a text file which can be used to create (make) the KwikNet Library
as described in Chapter 3.2. This file, called the KwikNet Library Make File NETCFG.MAK,
is created by merging information from the Network Parameter File with the Library
Make Template File KNnnnLIB.MT.
The Builder can also generate a copy of the KwikNet Library Header File KN_LIB.H which
is needed to compile KwikNet source files. This header file will also be included by any
application module which uses
KwikNet services. File KN_LIB.H is created by merging
information from the Network Parameter File with the Library Header Template File
KNnnnLIB.HT.
Note
If you use the KwikNet Library Make File NETCFG.MAK to
create your KwikNet Library, you do not have to generate
the KwikNet Library Header File KN_LIB.H. It will be
created for you during the make process.