XTI and TLI
XTI is derived from TLI, which was first
introduced with System V Release 3.0 of UNIX in 1986.
Both XTI and TLI
are Application Program Interfaces (APIs) that allow
user processes to access transport providers in a (mostly)
transport-independent fashion.
From the standpoint of syntax and semantics, the two libraries are nearly identical. The name of the header file used for TLI is tiuser.h. The syntax of the include preprocessor directive to use is
#include <sys/tiuser.h>
The name of the library to
be searched when compiling and linking a program that uses
TLI is nsl (Network Services Library).
The syntax of the cc command to use is
cc option file -lnsl
Applications written to use TLI can be ported relatively easily to XTI. You should note the points listed below when porting your application.