/* conn_finish.c - deal with request to finish the association */
static char *rcsid
= "$Header: /f/osi/quipu/RCS/conn_finish.c,v 7.3 91/02/22 09:38:29 mrose Interim $";
* $Header: /f/osi/quipu/RCS/conn_finish.c,v 7.3 91/02/22 09:38:29 mrose Interim $
* $Log: conn_finish.c,v $
* Revision 7.3 91/02/22 09:38:29 mrose
* Revision 7.2 90/10/17 11:53:22 mrose
* Revision 7.1 90/03/15 11:18:41 mrose
* Revision 7.0 89/11/23 22:16:45 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
#include "quipu/connection.h"
struct connection
* conn
;
extern time_t conn_timeout
, timenow
;
struct DSAPindication di_s
;
struct DSAPindication
* di
= &(di_s
);
DLOG(log_dsap
, LLOG_TRACE
, ("conn_finish()"));
/* Can release be negotiated? */
if (conn
->cn_start
.cs_ds
.ds_start
.acs_start
.ps_srequirements
& SR_NEGOTIATED
)
/* Should release be rejected? */
for(on
=conn
->cn_operlist
; on
!=NULLOPER
; on
=on
->on_next_conn
)
if (on
->on_state
== ON_CHAINED
)
* See if oper has had time to complete
* if so remote DSA has probably lost the operation (never !!!)
* else reject the release
if ( timenow
- conn
->cn_last_used
< conn_timeout
)
result
= DUnBindReject (conn
->cn_ad
, ACS_REJECT
,
result
= DUAbortRequest (conn
->cn_ad
, di
);
result
= DUnBindAccept (conn
->cn_ad
, di
);
result
= DUAbortRequest (conn
->cn_ad
, di
);
struct connection
* conn
;
struct DSAPindication di_s
;
struct DSAPindication
*di
= &di_s
;
struct DSAPabort
*da
= &(di
->di_abort
);
LLOG(log_dsap
, LLOG_NOTICE
, ("conn_rel_abort %d",conn
->cn_ad
));
result
= DUAbortRequest (conn
->cn_ad
, di
);
ds_log (da
, "DUAbortRequest in conn_rel_abort()");