|
|
1.1 root 1: /* rt2ssreleas2.c - RTPM: respond to release */
2:
3: #ifndef lint
4: static char *rcsid = "$Header: /f/osi/rtsap/RCS/rt2ssreleas2.c,v 6.0 89/03/18 23:43:22 mrose Rel $";
5: #endif
6:
7: /*
8: * $Header: /f/osi/rtsap/RCS/rt2ssreleas2.c,v 6.0 89/03/18 23:43:22 mrose Rel $
9: *
10: *
11: * $Log: rt2ssreleas2.c,v $
12: * Revision 6.0 89/03/18 23:43:22 mrose
13: * Release 5.0
14: *
15: */
16:
17: /*
18: * NOTICE
19: *
20: * Acquisition, use, and distribution of this module and related
21: * materials are subject to the restrictions of a license agreement.
22: * Consult the Preface in the User's Manual for the full terms of
23: * this agreement.
24: *
25: */
26:
27:
28: /* LINTLIBRARY */
29:
30: #include <stdio.h>
31: #include <signal.h>
32: #include "rtpkt.h"
33:
34: /* RT-END.RESPONSE (X.410 CLOSE.RESPONSE) */
35:
36: int RtEndResponse (sd, rti)
37: int sd;
38: struct RtSAPindication *rti;
39: {
40: SBV smask;
41: int result;
42: register struct assocblk *acb;
43:
44: missingP (rti);
45:
46: smask = sigioblock ();
47:
48: rtsapFsig (acb, sd);
49:
50: result = RtEndResponseAux (acb, rti);
51:
52: (void) sigiomask (smask);
53:
54: return result;
55:
56: }
57:
58: /* */
59:
60: static int RtEndResponseAux (acb, rti)
61: register struct assocblk *acb;
62: struct RtSAPindication *rti;
63: {
64: int result;
65: struct SSAPindication sis;
66: register struct SSAPindication *si = &sis;
67: register struct SSAPabort *sa = &si -> si_abort;
68:
69: if (acb -> acb_flags & ACB_ACS)
70: return rtsaplose (rti, RTS_OPERATION, NULLCP,
71: "not an association descriptor for RTS");
72:
73: if (SRelResponse (acb -> acb_fd, SC_ACCEPT, NULLCP, 0, si) == NOTOK)
74: result = ss2rtslose (acb, rti, "SRelResponse", sa);
75: else {
76: acb -> acb_fd = NOTOK;
77: result = OK;
78: }
79:
80: acb -> acb_flags &= ~ACB_STICKY;
81: freeacblk (acb);
82:
83: return result;
84: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.