ACC X.25 Protocol User's Guide

X.25 Application Programming
ZX25CALLACC (3X)ACC X.25
Chapter 4 87
See the following NOTES section for more information on using this
routine in a multi-threaded application.
PAR A ME TER S : zxip ZCOM X.25 access data structure (from zx25info call).
vzap ZCOM address of the Virtual Circuit (terminal ZLU).
fbuf Facilities data buffer.
flen Facilities data length (in bytes).
ubuf Call user data buffer.
ulen Call user data length (in bytes).
dbit D-bit (Only used for 1988 D-bit negotiation)
0 - no D-bit (set to 0)
non-zero - D-bit set to 1
clngaddr User-supplied calling address buffer (if NULL, calling
address not supplied). See Notes below for its format.
caldaddr User-supplied called address buffer (if NULL, called
address not supplied). See Notes below for its format.
RETURN VALUE Routine zx25callacc 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. If zx25callacc itself failed, one of the following positive
error codes is returned:
ZxeUNKNOWN_L2_ZLU (02) Unable to find the X.25 link ZLU for
this SVC ZLU.
ZxeREQ_TIMEOUT (04) The remote ZCOM system did not
respond within 30 seconds.
ZxeNOT_A_SVC (05) The ZLU specified is a PVC ZLU. You
must specify an SVC ZLU with this
routine.
ZxeNO_INBOUND_CALL (06) This virtual circuit ZLU does not
have a pending inbound call to
accept.
ZxeLINK_IS_DOWN (11) The X.25 link is down. Unable to
accept call.