User`s guide

KwikNet Low Level Services
K
A
DAK
123
4. KwikNet Low Level Services
4.1 The UDP Programming Interface
Applications which are memory constrained or have no need to use TCP can exclude the
TCP protocol and use only the
KwikNet IP stack and its UDP application programming
interface (API). Be aware that UDP is a connectionless protocol which uses only the
unreliable IP layer for UDP datagram delivery.
There are two ways to access UDP services: use UDP sockets or use UDP channels. You
can program using UDP sockets or UDP channels or a mixture of both if you so choose.
UDP Sockets
KwikNet supports the use of the UDP protocol with the same sockets interface used with
the TCP/IP protocol (see Chapter 5). The use of UDP sockets is the preferred method of
UDP communication. It is the only method which supports both IPv4 and IPv6.
UDP Channels
The UDP channel is an artifice first introduced by KADAK with KwikNet v2 to support
UDP programming. For backwards compatibility with KwikNet v2, UDP channels are
supported in all versions of KwikNet up to and including KwikNet v3.01a. However, future
releases of KwikNet will no longer support this feature.
UDP channels can only be used with IPv4. UDP channels cannot be used with IPv6.
Note
UDP channels cannot be used with IPv6.
Support for UDP channels will not be provided in future
releases of KwikNet.