User`s guide
viii
K
A
DAK
KwikNet User's Guide
KwikNet
TCP/IP Stack User's Guide
Table of Contents (continued)
Page
4. KwikNet Low Level Services (continued) 135
4.5 KwikNet Network Interface Services................................................... 135
Introduction to Network Interfaces...................................................... 135
Network Descriptor.............................................................................. 136
Network Parameter Structure (Ethernet).............................................. 137
Network Parameter Structure (SLIP)................................................... 138
Network Parameter Structure (PPP)..................................................... 139
Network Attributes............................................................................... 140
Network States..................................................................................... 141
Monitoring Network Events................................................................. 141
Starting and Stopping KwikNet ........................................................... 142
4.6 KwikNet Library Services.................................................................... 143
5. KwikNet TCP/IP Sockets 181
5.1 Introduction to KwikNet Sockets......................................................... 181
KwikNet Procedure Descriptions......................................................... 181
KwikNet Sockets API.......................................................................... 182
Socket Addresses ................................................................................. 182
Non-Blocking Sockets ......................................................................... 183
KwikNet Error Codes .......................................................................... 183
5.2 Socket Types........................................................................................ 184
Stream Socket (for TCP)...................................................................... 184
Datagram Socket (for UDP)................................................................. 184
Using UDP Sockets.............................................................................. 185
UDP Sockets Examples ....................................................................... 186
5.3 Socket Options..................................................................................... 187
Non-Standard Socket Options.............................................................. 189
TCP Protocol Options.......................................................................... 189
5.4 KwikNet Socket Services..................................................................... 191
6. KwikNet PPP Option 225
6.1 Introduction to PPP .............................................................................. 225
6.2 KwikNet PPP Configuration ................................................................ 227
PPP Network Definition....................................................................... 228
PPP Options......................................................................................... 229
6.3 Using a PPP Network Interface............................................................ 230
The PPP Client and Server................................................................... 230
Opening a PPP Network Interface ....................................................... 231
6.4 PPP Authentication Parameters............................................................ 232
Security Issues ..................................................................................... 233
6.5 Adding PPP to Your Application......................................................... 237
KwikNet Library.................................................................................. 237
Reconstructing Your KwikNet Application......................................... 238
AMX Considerations ........................................................................... 238