ACC X.25 Protocol User's Guide

Chapter 4 101
X.25 Application Programming
ZX25CLOSE (3X) — ACC X.25
/opt/acc/include/zcom/zcomsys.h forthelistofZCOMerrorcodesand
their meanings.
NOTES In a multi-threaded a pplication, each thread must ma ke a separate call
to zx25info using a per-thread ZCOM X.25 access data buffer zxip.This
routine should be called by each thread to clean up its own resources,
using the per-thread data buffer.
EXAMPLE
#include <zcom/zcomsys.h>
#include <zcom/zcomx25.h>
int ierr;
zx25info_type zxi;
if (ierr = zx25info (&zxi)) {
/* error return code */
}
else {
/* good return code */
}
/* ... calling other zx25*() routines with ’zxi’ ... */
/* When finish, clean up resources */
if (ierr = zx25close (&zxi)) {
/* error return code */
}
else {
/* good return code */
}