ACC X.25 Protocol User's Guide

X.25 Application Programming
ZX25SEND_INT (3X) — ACC X.25
Chapter 4126
ZX25SEND_INT (3X) — ACC X.25
NAME zx25send_int – Send Interrupt data on a Virtual Circuit
SYNOPSIS
#include <zcom/zcomsys.h>
#include <zcom/zcomx25.h>
int zx25send_int (zxip, vzap, ibuf, len)
zx25info_type *zxip;
zaddr_type *vzap;
char *ibuf;
int len;
DESCRIPTION Routine zx25send_int requests that an Interrupt packet be sent on a
Virtual Circuit. This function should only be called if the Virtual Circuit
has already been setup. If the Link is configured for 1980 operations, you
can send only 1 byte of data. If the LINK is configured for 1984
operations, you can send up to 32 bytes of data. You are not allowed to
send another Interrupt packet until you receive an Interrupt
Confirmation OR the Confirmation times out.
The libraries libzx25.a, libzcom_c.a, and libpthread.a must be linked into
the calling program by giving the “-lzx25 -lzcom_c -lpthread” options to
cc(1) or ld(1).
Threads
Considerations
This routine may be called from a multi-threaded application using the
POSIX (1003.1c) kernel threads API package. It has the following
characteristics when called by multi-threaded applications:
cancellation point Thread cancellation can occur when a
thread calls this routine.
async-cancel unsafe The calling thread’s cancelability
type must be
PTHREAD_CANCEL_DEFERRED if
cancellation is enabled.
async-signal unsafe It cannot be called from a signal
handler.
fork unsafe It cannot be called by a child process
after fork(2) but before exec(2).