DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T n

⟦edf8baedb⟧ TextFile

    Length: 2300 (0x8fc)
    Types: TextFile
    Names: »nw_ro_error.c«

Derivation

└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
    └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« 
        └─⟦d3ac74d73⟧ 
            └─⟦this⟧ »isode-5.0/dsap/net/nw_ro_error.c« 

TextFile

/* nw_ro_error.c - */

#ifndef	lint
static char *rcsid = "$Header: /f/osi/dsap/net/RCS/nw_ro_error.c,v 6.0 89/03/18 23:28:49 mrose Rel $";
#endif

/* 
 * $Header: /f/osi/dsap/net/RCS/nw_ro_error.c,v 6.0 89/03/18 23:28:49 mrose Rel $
 *
 *
 * $Log:	nw_ro_error.c,v $
 * Revision 6.0  89/03/18  23:28:49  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"
#include "quipu/ds_error.h"

extern	LLog	* log_dsap;
struct activity *       task_alloc();

net_wait_ro_error(conn, roe)
Conn                    conn;
struct RoSAPerror       *roe;
{
    struct activity *   oper;

    DLOG(log_dsap, LLOG_TRACE, ("net_wait_ro_error"));

    for(oper=conn->cn_operlist; oper != NULLACTIVITY; oper=oper->on_next_conn)
	if(oper->act_id == roe->roe_id)
	    break;

    if(oper != NULLACTIVITY)
    {
	if(oper->act_class == ACTIVITY_NET_WAIT)
	{
	    /* Reject unless overridden later */
	    oper->act_class = ACTIVITY_DSA_WORK;
	    oper->act_type = ACT_TYPE_RESP;
	    oper->act_resp.resp_type = RESP_TYPE_REJ;

	    if(ds_recog_err(roe->roe_error))
	    {
	        if((decode_OPError(roe->roe_param,
		  roe->roe_error, &(oper->act_resp.resp_err))) == OK)
	        {
		    oper->act_class = ACTIVITY_DSA_WORK;
		    oper->act_type = ACT_TYPE_RESP;
		    oper->act_resp.resp_type = RESP_TYPE_RET;
		    oper->act_resp.ret_type = RET_TYPE_ERR;
	        }
	        else
	        {
		    net_send_ro_ureject(conn->cn_ad, &(roe->roe_id), ROS_REP_MISTYPED);
	        }
	    }
	    else
	    {
		net_send_ro_ureject(conn->cn_ad, &(roe->roe_id), ROS_REP_RECERR);
	    }

	    if(oper->on_task == NULLACTIVITY)
	    {
		LLOG(log_dsap, LLOG_EXCEPTIONS, ("Task already completed"));
	    }
	    else
	    {
		oper->on_task->act_class = ACTIVITY_COLLATE;
	    }
	}
	else
	{
	    net_send_ro_ureject(conn->cn_ad, &(roe->roe_id), ROS_REP_UNEXP);
	}
    }
    else
    {
	LLOG(log_dsap, LLOG_FATAL, ("Task memerr 6"));
	net_send_ro_ureject(conn->cn_ad, &(roe->roe_id), ROS_REP_UNRECOG);
    }
}