|
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: 2321 (0x911) Types: TextFile Names: »nw_ro_result.c«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« └─⟦d3ac74d73⟧ └─⟦this⟧ »isode-5.0/dsap/net/nw_ro_result.c«
/* nw_ro_result.c - */ #ifndef lint static char *rcsid = "$Header: /f/osi/dsap/net/RCS/nw_ro_result.c,v 6.0 89/03/18 23:28:55 mrose Rel $"; #endif /* * $Header: /f/osi/dsap/net/RCS/nw_ro_result.c,v 6.0 89/03/18 23:28:55 mrose Rel $ * * * $Log: nw_ro_result.c,v $ * Revision 6.0 89/03/18 23:28:55 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(); net_wait_ro_result(conn, ror) Conn conn; struct RoSAPresult *ror; { struct activity * oper; DLOG(log_dsap, LLOG_TRACE, ("net_wait_ro_result")); for(oper=conn->cn_operlist; oper != NULLACTIVITY; oper=oper->on_next_conn) { if(oper->act_id == ror->ror_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_op(ror->ror_op)) { if(decode_OPResult(conn->cn_dsa, ror->ror_result, ror->ror_op, &(oper->act_resp.resp_res)) == OK) { oper->act_class = ACTIVITY_NET_WAIT; oper->act_prio = 1; oper->act_type = ACT_TYPE_RESP; oper->act_resp.resp_type = RESP_TYPE_RET; oper->act_resp.ret_type = RET_TYPE_RES; } else { net_send_ro_ureject(conn->cn_ad, &(ror->ror_id), ROS_RRP_MISTYPED); } } else { net_send_ro_ureject(conn->cn_ad, &(ror->ror_id), ROS_RRP_MISTYPED); } 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, &(ror->ror_id), ROS_RRP_UNEXP); } } else { LLOG(log_dsap, LLOG_FATAL, ("Task memerr 10")); net_send_ro_ureject(conn->cn_ad, &(ror->ror_id), ROS_RRP_UNRECOG); } }