📄 u_iocs.c
字号:
/************************************************************************//* SISCO SOFTWARE MODULE HEADER *****************************************//************************************************************************//* (c) Copyright Systems Integration Specialists Company, Inc., *//* 1986 - 1997, All Rights Reserved. *//* *//* MODULE NAME : u_iocs.c *//* PRODUCT(S) : MMSEASE *//* *//* MODULE DESCRIPTION : *//* This module contains user defined code to service operator *//* communication indications. These functions are invoked from *//* the 'mms_ind_serve' function, and should perform the request *//* action. *//* *//* GLOBAL FUNCTIONS DEFINED IN THIS MODULE : *//* *//* MODIFICATION LOG : *//* Date Who Rev Comments *//* -------- --- ------ ------------------------------------------- *//* 04/15/97 DSF 7.00 MMSEASE 7.0 release. See MODL70.DOC for *//* history. *//************************************************************************/#include "glbtypes.h"#include "sysincs.h"#include "mms_usr.h"#include "mms_pocs.h"#include "userdefs.h"#include "mmsop_en.h"#include "gvaldefs.h"#include "scrndefs.h"/************************************************************************//* For debug version, use a static pointer to avoid duplication of *//* __FILE__ strings. *//************************************************************************/#ifdef DEBUG_SISCOstatic ST_CHAR *thisFileName = __FILE__;#endif/************************************************************************//************************************************************************//* OPERATOR COMMUNICATIONS *//************************************************************************//************************************************************************//* OUTPUT OPERATION *//************************************************************************/#if MMS_OUTPUT_EN & RESP_ENST_VOID u_output_ind (MMSREQ_IND *req_info) {OUTPUT_REQ_INFO *ptr;ST_CHAR **od_ptr;ST_INT i; if (mms_debug_sel & MMS_LOG_USR_IND) { indic_info_print (req_info,"Output Operation "); ptr = (OUTPUT_REQ_INFO *) req_info->req_info_ptr; od_ptr = (ST_CHAR **) (ptr + 1); printf ("\n Output Station Name : %s",ptr->station_name); printf ("\n Number of Output Data Strings : %d ", ptr->data_count); for (i = 0; i < ptr->data_count; i++, od_ptr++) printf ("\n Output Data %3d : %s", i+1, *od_ptr); } mp_output_resp (req_info); /* send the response */ indic_info_wait (); /* allow user to see indic info */ }#endif/************************************************************************//* INPUT OPERATION *//************************************************************************/#if MMS_INPUT_EN & RESP_ENST_VOID u_input_ind (MMSREQ_IND *req_info) {INPUT_REQ_INFO *ptr;INPUT_RESP_INFO resp_info;ST_CHAR **pd_ptr;ST_INT i; if (mms_debug_sel & MMS_LOG_USR_IND) { indic_info_print (req_info,"Input Operation "); ptr = (INPUT_REQ_INFO *) req_info->req_info_ptr; pd_ptr = (ST_CHAR **) (ptr + 1); printf ("\n Input Station Name : %s",ptr->station_name); if (ptr->echo) printf ("\n Echo : On "); else printf ("\n Echo : Off "); if (ptr->timeout_pres) printf ("\n Input Timeout : %lu ", ptr->timeout); else printf ("\n Input Timeout : Not Present "); if (ptr->prompt_pres) { printf ("\n Number of Prompt Data Strings : %d ", ptr->prompt_count); for (i = 0; i < ptr->prompt_count; i++, pd_ptr++) printf ("\n Prompt Data %3d : %s", i+1, *pd_ptr); } else printf ("\n Prompt Data : Not Present "); } /* create a default response */ strcpy (dest_buffer, "this is an input response "); resp_info.input_resp = dest_buffer; if (mms_debug_sel & MMS_LOG_USR_IND) { printf ("\n\n Enter input response : (O) "); if (!strget (dest_buffer)) dest_buffer[0] = '\x00'; } mp_input_resp (req_info, &resp_info); /* send the response */ indic_info_wait (); /* allow user to see indic info */ }#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -