/* ssapexpd.c - SPM: write expedited data */
static char *rcsid
= "$Header: /f/osi/ssap/RCS/ssapexpd.c,v 7.1 91/02/22 09:45:47 mrose Interim $";
* $Header: /f/osi/ssap/RCS/ssapexpd.c,v 7.1 91/02/22 09:45:47 mrose Interim $
* Revision 7.1 91/02/22 09:45:47 mrose
* Revision 7.0 89/11/23 22:25:27 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-EXPEDITED-DATA.REQUEST */
int SExpdRequest (sd
, data
, cc
, si
)
struct SSAPindication
*si
;
register struct ssapblk
*sb
;
return ssaplose (si
, SC_PARAMETER
, NULLCP
,
"too much expedited user data, %d octets", cc
);
result
= SExpdRequestAux (sb
, data
, cc
, si
);
(void) sigiomask (smask
);
static int SExpdRequestAux (sb
, data
, cc
, si
)
register struct ssapblk
*sb
;
struct SSAPindication
*si
;
register struct ssapkt
*s
;
if (!(sb
-> sb_requirements
& SR_EXPEDITED
))
return ssaplose (si
, SC_OPERATION
, NULLCP
,
"expedited data service unavailable");
if ((s
= newspkt (SPDU_EX
)) == NULL
)
return ssaplose (si
, SC_CONGEST
, NULLCP
, "out of memory");
s
-> s_udata
= data
, s
-> s_ulen
= cc
;
result
= spkt2sd (s
, sb
-> sb_fd
, 1, si
);
s
-> s_udata
= NULL
, s
-> s_ulen
= 0;