📄 mmsallp.c
字号:
/************************************************************************//* SISCO SOFTWARE MODULE HEADER *****************************************//************************************************************************//* (c) Copyright Systems Integration Specialists Company, Inc., *//* 1986 - 2001, All Rights Reserved. *//* *//* MODULE NAME : mmsallp.c *//* PRODUCT(S) : MMSEASE *//* *//* MODULE DESCRIPTION : *//* This module contains functions to perform MMS LLP services. *//* These functions are called from the mainloop (check_key). *//* *//* GLOBAL FUNCTIONS DEFINED IN THIS MODULE : *//* *//* MODIFICATION LOG : *//* Date Who Rev Comments *//* -------- --- ------ ------------------------------------------- *//* 11/29/01 EJV 01 Del code for old LATT, XENIX, ultrix, RMX86. *//* 04/15/97 DSF 7.00 MMSEASE 7.0 release. See MODL70.DOC for *//* history. *//************************************************************************/#include "glbtypes.h"#include "sysincs.h"#if (SYSTEM_SEL & (MSOFT))#include <dos.h>#include <process.h>#endif#include "mms_usr.h" /* to access MMS fucntions, variables */#include "mmsop_en.h"#include "fkeydefs.h" /* Function key handling */#include "asn1defs.h" /* to access ASN.1 variables */#include "userdefs.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/************************************************************************//* do_register *//* SUIC function to register a AR name with LLP *//************************************************************************/ST_VOID do_register (ST_VOID) {ST_INT i;ST_CHAR name[180];ST_INT chan; CLEARSCR; printf ("\n\n Select Channel to use for Register : "); if (!intget (&chan)) { (*menu_set_fun) (); return; } if (chan < 0 || chan >= max_mms_chan) { printf ("\n Invalid Channel Number"); wait_msg (" Hit Any Key to Continue ... "); (*menu_set_fun) (); return; } printf ("\n Enter AR Name to Register - "); if (!strget (name)) { (*menu_set_fun) (); return; } if (i = mllp_reg_ar_name (chan,name)) print_perror_wait (i,"chan %d register error : "); (*menu_set_fun) (); }/************************************************************************//* do_activate *//* SUIC function to activate a AR name with LLP *//************************************************************************/ST_VOID do_activate (ST_VOID) {ST_INT i;ST_CHAR name[180];ST_INT llp_type;#ifdef MAP30_ACSE /* MAP 3.0 ACSE */ llp_type = ACSE30_LLP;#endif#ifdef MAP30_LLC /* MAP 3.0 LLC */ llp_type = LLC30_LLP;#endif CLEARSCR; printf ("\n Enter AR Name to Activate - "); if (!strget (name)) { (*menu_set_fun) (); return; } if (i = mllp_act_arname (name,llp_type)) print_perror_wait (i,"activate error :"); (*menu_set_fun) (); }/************************************************************************//* do_deactivate *//* SUIC function to deactivate a AR name with LLP *//************************************************************************/ST_VOID do_deactivate (ST_VOID) {ST_INT i;ST_CHAR name[180];ST_INT llp_type;#ifdef MAP30_ACSE /* MAP 3.0 ACSE */ llp_type = ACSE30_LLP;#endif#ifdef MAP30_LLC /* MAP 3.0 LLC */ llp_type = LLC30_LLP;#endif CLEARSCR; printf ("\n Enter AR Name to Deactivate - "); if (!strget (name)) { (*menu_set_fun) (); return; } if (i = mllp_deact_arname (name,llp_type)) print_perror_wait (i,"deactivate error : "); (*menu_set_fun) (); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -