|
|
1.1 root 1: /* conn_abort.c - abort association */
2:
3: #ifndef lint
4: static char *rcsid = "$Header: /f/osi/quipu/RCS/conn_abort.c,v 7.0 89/11/23 22:16:43 mrose Rel $";
5: #endif
6:
7: /*
8: * $Header: /f/osi/quipu/RCS/conn_abort.c,v 7.0 89/11/23 22:16:43 mrose Rel $
9: *
10: *
11: * $Log: conn_abort.c,v $
12: * Revision 7.0 89/11/23 22:16:43 mrose
13: * Release 6.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 "quipu/dsap.h"
31: #include "quipu/util.h"
32: #include "quipu/connection.h"
33:
34: extern LLog * log_dsap;
35:
36: struct connection * conn_alloc();
37: void conn_free();
38: void ds_log ();
39:
40: net_send_abort(conn)
41: register struct connection * conn;
42: {
43: int result;
44: struct DSAPindication di_s;
45: struct DSAPindication *di = &di_s;
46: struct DSAPabort *da = &(di->di_abort);
47:
48: DLOG(log_dsap, LLOG_TRACE, ("net_send_abort"));
49:
50: DLOG(log_dsap, LLOG_NOTICE, ("D-ABORT.REQUEST: <%d>", conn->cn_ad));
51:
52: watch_dog ("DUAbortRequest");
53: result = DUAbortRequest(conn->cn_ad, di);
54: watch_dog_reset();
55:
56: if (result != OK)
57: {
58: ds_log(da, "D-ABORT.REQUEST");
59: }
60: conn->cn_state = CN_FAILED;
61: conn->cn_ad = 0;
62: }
63:
64: /* ADT: Needs improving */
65:
66: void ds_log (da, str)
67: struct DSAPabort * da;
68: char * str;
69: {
70: LLOG (log_dsap, LLOG_EXCEPTIONS, ("DSAP abort : %s", str));
71: }
72:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.