|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T n
Length: 1986 (0x7c2)
Types: TextFile
Names: »ns_ro_result.c«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
└─⟦eba4602b1⟧ »./isode-5.0.tar.Z«
└─⟦d3ac74d73⟧
└─⟦this⟧ »isode-5.0/dsap/net/ns_ro_result.c«
/* ns_ro_result.c - */
#ifndef lint
static char *rcsid = "$Header: /f/osi/dsap/net/RCS/ns_ro_result.c,v 6.0 89/03/18 23:28:46 mrose Rel $";
#endif
/*
* $Header: /f/osi/dsap/net/RCS/ns_ro_result.c,v 6.0 89/03/18 23:28:46 mrose Rel $
*
*
* $Log: ns_ro_result.c,v $
* Revision 6.0 89/03/18 23:28:46 mrose
* Release 5.0
*
*/
/*
* NOTICE
*
* 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
* this agreement.
*
*/
/* LINTLIBRARY */
#include "rosap.h"
#include "quipu/util.h"
#include "quipu/connection.h"
extern LLog * log_dsap;
struct activity * task_alloc();
void ros_log ();
/*
* The DSA has produced a result for the task, encode the result,
* generate an RO-RESULT.REQUEST and update the task block.
*/
net_send_ro_result(task)
register struct activity * task;
{
PE res_pe;
int res_type;
struct RoSAPindication roi_s;
struct RoSAPindication *roi = &roi_s;
struct RoSAPpreject *rop = &(roi->roi_preject);
struct ds_op_res * arg;
DLOG(log_dsap, LLOG_TRACE, ("net_send_ro_result"));
if(task == NULLACTIVITY)
{
LLOG(log_dsap, LLOG_FATAL, ("Task memerr 5"));
return;
}
arg = task->act_result;
if(encode_OPResult(task->act_conn->cn_dsa, &res_pe, &res_type, arg) == OK)
{
if(RoResultRequest(task->act_conn->cn_ad, task->act_id, res_type,
res_pe, task->act_prio, roi) == NOTOK)
{
ros_log(rop, "RO-RESULT.REQUEST");
}
pe_free(res_pe);
}
else
{
LLOG(log_dsap, LLOG_EXCEPTIONS, ("Couldnt encode result"));
/*
* Same comment as for net_send_ro_error !!
* Cannot do nothing, but none of the reject codes fit!
*/
net_send_ro_ureject(task->act_conn->cn_ad, &(task->act_id), ROS_IP_RELEASE);
}
}