/* ssapcapd2.c - SPM: read capability data */
static char *rcsid
= "$Header: /f/osi/ssap/RCS/ssapcapd2.c,v 7.1 91/02/22 09:45:44 mrose Interim $";
* $Header: /f/osi/ssap/RCS/ssapcapd2.c,v 7.1 91/02/22 09:45:44 mrose Interim $
* Revision 7.1 91/02/22 09:45:44 mrose
* Revision 7.0 89/11/23 22:25:24 mrose
* Acquisition, use, and distribution of this module and related
* materials are subject to the restrictions of a license agreement.
* Consult the Preface in the User's Manual for the full terms of
/* \f S-CAPABILITY-DATA.RESPONSE */
int SCapdResponse (sd
, data
, cc
, si
)
struct SSAPindication
*si
;
register struct ssapblk
*sb
;
toomuchP (sb
, data
, cc
, SX_CDASIZE
, "capability");
result
= SCapdResponseAux (sb
, data
, cc
, si
);
(void) sigiomask (smask
);
static int SCapdResponseAux (sb
, data
, cc
, si
)
register struct ssapblk
*sb
;
struct SSAPindication
*si
;
if (!(sb
-> sb_requirements
& SR_CAPABILITY
))
return ssaplose (si
, SC_OPERATION
, NULLCP
,
"capability data exchange service unavailable");
if (!(sb
-> sb_flags
& SB_CDA
))
return ssaplose (si
, SC_OPERATION
, NULLCP
,
"no capability data response in progress");
if ((result
= SWriteRequestAux (sb
, SPDU_CDA
, data
, cc
, 0, 0L, 0, NULLSD
,
NULLSD
, NULLSR
, si
)) == NOTOK
)
sb
-> sb_flags
&= ~SB_CDA
;