ACC X.25 Protocol User's Guide
X.25 Application Programming
ZX25CLOSE (3X) — ACC X.25
Chapter 4102
RETURN VALUE Routine zx25close returns a 0 when successful. If there was a ZCOM
error, it returns a negative value. See
/opt/acc/include/zcom/zcomsys.h for the list of ZCOM error codes and
their meanings.
NOTES In a multi-threaded application, each thread must make 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 */
}










