User`s guide
KwikNet User's Guide
K
A
DAK
v
KwikNet
TCP/IP Stack User's Guide
Table of Contents
Page
1. KwikNet Overview 1
1.1 Introduction.......................................................................................... 1
1.2 General Operation................................................................................ 7
KwikNet Operation.............................................................................. 9
Multitasking Operation ........................................................................ 10
Single Threaded Operation .................................................................. 11
The Single Threaded Server Queue ..................................................... 12
1.3 KwikNet Nomenclature........................................................................ 13
1.4 Byte Ordering and Endianness............................................................. 14
1.5 Memory Allocation Requirements....................................................... 16
Standard C Allocation.......................................................................... 16
KwikNet Simple Heap ......................................................................... 16
OS Memory Management.................................................................... 17
Memory Acquisition Function............................................................. 17
Memory Allocation Protection............................................................. 18
1.6 KwikNet Data Logging Service ........................................................... 19
Message Formatting............................................................................. 19
Message Print Attributes...................................................................... 20
KwikNet Data Log Function................................................................ 21
1.7 KwikNet Message Recording Service.................................................. 22
1.8 KwikNet Console Driver...................................................................... 23
Serial I/O Terminal as the Console Device.......................................... 24
PC Display/Keyboard as the Console Device...................................... 24
Telnet as the Console Device............................................................... 24
AMX Console Devices ........................................................................ 24
1.9 Debugging Aids ................................................................................... 25
Debug Logging .................................................................................... 25
Programmed Halt................................................................................. 25
Fatal Errors .......................................................................................... 25
Breakpoint Traps.................................................................................. 26
Monitoring Memory Usage.................................................................. 26
Debug Mask......................................................................................... 27
1.10 KwikNet TCP/IP Sample Program - A Tutorial................................. 28
Startup.................................................................................................. 29
Client - Server Using TCP Sockets...................................................... 30
Client - Server Using UDP Sockets ..................................................... 32
Logging................................................................................................ 33
Shutdown ............................................................................................. 33
Running the TCP/IP Sample Program ................................................. 34