NIO CommKit Host Interface Installation and System Administration Manual

5-5
Programming with the CommKit Function Library
The TLI and XTI Application Function Libraries
The TLI and XTI Application Function Libraries
The Transport Layer Interface (TLI) routines provide a standard
network-independent application interface for writing network-capable
programs. The TLI functions (topen, tbind, tsnd, and so on) are stored in the
library /usr/lib/libnsl_s.a.
To compile and link a program that uses TLI functions, use a command like
this one:
# cc -o
outputFileName sourceFileName
-lnsl_s
The TLI Interface is not supported for 64-bit applications on HP-UX. For
64-bit applications, use XTI (X/Open Transport Layer Interface), which was
derived from TLI. The minor differences do not affect CommKit
functionality.
To compile and link a program that uses XTI functions, use the /usr/lib/
libxti.sl library:
# cc -o
outputFileName sourceFileName
-lxti
Also, within the program, the include file xti.h should be used instead of
tiuser.h.