ACC X.25 Protocol User's Guide

64 Chapter4
X.25 Application Programming
Introduction
Introduction
CAUTION TheAPIdescribedheremaynotbeusedforanX.25linkorVCZLUthat
is accessed or used by the X.25/9000 Streams product.
This chapter contains a general discussion of programming using the
ZCOM a n d ACC X.25 API calls for communicating across X.25 Virtual
Circuits. However, before reading this chapter you should review
chapters 1, 2, and the section “Message Header” in chapter 3 of the
ACC Programmer’s Reference Guide. You should also review the
following man pages: zinit(), zopen(), zinfo(), zset_rcvr(), zcntl(), zsend(),
zread(),andzclos(),intheACC Programmer’s Reference Guide.Inmost
X.25 applications, these are the core general ZCOM API routines that
will be used.
The general ZCOM API routines are used to initialize your application
and to send and receive data to/from Virtual Circuit ZLUs. The ACC X.25
API routines are used to perform X.25 specific actions such as
establishing and clearing calls on SVCs or sending Reset Requests. This
chapterisbrokenintofoursections:ProgrammaticConfiguration,X.25
Link Ini tialization, S ending and Receiving data, and Using the X.25 API
routines.
To help you understand the general structure of a n X.25 application, the
following pseudo code example is provided.