⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 au_ex_ms.cpp

📁 map协议源代码
💻 CPP
📖 第 1 页 / 共 3 页
字号:
/********************************************************************16**

                         (c) COPYRIGHT 1989-2005 by 
                         Continuous Computing Corporation.
                         All rights reserved.

     This software is confidential and proprietary to Continuous Computing 
     Corporation (CCPU).  No part of this software may be reproduced,
     stored, transmitted, disclosed or used in any form or by any means
     other than as expressly provided by the written Software License 
     Agreement between CCPU and its licensee.

     CCPU warrants that for a period, as provided by the written
     Software License Agreement between CCPU and its licensee, this
     software will perform substantially to CCPU specifications as
     published at the time of shipment, exclusive of any updates or 
     upgrades, and the media used for delivery of this software will be 
     free from defects in materials and workmanship.  CCPU also warrants 
     that has the corporate authority to enter into and perform under the   
     Software License Agreement and it is the copyright owner of the software 
     as originally delivered to its licensee.

     CCPU MAKES NO OTHER WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
     WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY OR FITNESS FOR
     A PARTICULAR PURPOSE WITH REGARD TO THIS SOFTWARE, SERVICE OR ANY RELATED
     MATERIALS.

     IN NO EVENT SHALL CCPU BE LIABLE FOR ANY INDIRECT, SPECIAL,
     CONSEQUENTIAL DAMAGES, OR PUNITIVE DAMAGES IN CONNECTION WITH OR ARISING
     OUT OF THE USE OF, OR INABILITY TO USE, THIS SOFTWARE, WHETHER BASED
     ON BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE), PRODUCT
     LIABILITY, OR OTHERWISE, AND WHETHER OR NOT IT HAS BEEN ADVISED
     OF THE POSSIBILITY OF SUCH DAMAGE.

                       Restricted Rights Legend

     This software and all related materials licensed hereby are
     classified as "restricted computer software" as defined in clause
     52.227-19 of the Federal Acquisition Regulation ("FAR") and were
     developed entirely at private expense for nongovernmental purposes,
     are commercial in nature and have been regularly used for
     nongovernmental purposes, and, to the extent not published and
     copyrighted, are trade secrets and confidential and are provided
     with all rights reserved under the copyright laws of the United
     States.  The government's rights to the software and related
     materials are limited and restricted as provided in clause
     52.227-19 of the FAR.

                    IMPORTANT LIMITATION(S) ON USE

     The use of this software is limited to the use set
     forth in the written Software License Agreement between CCPU and
     its Licensee. Among other things, the use of this software
     may be limited to a particular type of Designated Equipment, as 
     defined in such Software License Agreement.
     Before any installation, use or transfer of this software, please
     consult the written Software License Agreement or contact CCPU at
     the location set forth below in order to confirm that you are
     engaging in a permissible use of the software.

                    Continuous Computing Corporation
                    9380, Carroll Park Drive
                    San Diego, CA-92121, USA

                    Tel: +1 (858) 882 8800
                    Fax: +1 (858) 777 3388

                    Email: support@trillium.com
                    Web: http://www.ccpu.com

*********************************************************************17*/

/********************************************************************20**
  
     Name:     application - external - mos
  
     Type:     C source file
  
     Desc:     Functions required for scheduling and initialization.
  
     File:     au_ex_ms.c
  
     Sid:      au_ex_ms.c@@/main/6 - Fri Sep 16 02:43:11 2005

     Prg:      ssk
  
*********************************************************************21*/
#ifdef __cplusplus
extern "C"{
#endif


#include "envopt.h"        /* environment options */
#include "envdep.h"        /* environment dependent */
#include "envind.h"        /* environment independent */
#include "gen.h"           /* general layer */
#include "cm5.h"
#include "ssi.h"
#include "lma.h"
#include "cm_err.h"
#include "stu.h"
#include "cm_hash.h"
#include "mat.h"
#include "cm_ss7.h"


#include "gen.x"
#include "cm5.x"
#include "ssi.x"
#include "cm_ss7.x"
#include "cm_lib.x"
#include "stu.x"
#include "lma.x"
#include "cm_hash.x"
#include "mat.x"


#ifdef CP_CMS
#include "lha_app.h"
#endif

#include "au.h"
#include "au_ext.h"
#include "au_opr.h"
  
  
/* local defines */

/* error codes for log error */
#define   ERRAU       0
#define   EAU001      (ERRAU + 1)
  
/* local typedefs */
  
/* local externs */
  
/* forward references */

/* functions in other modules */
#ifdef AU
EXTERN S16 AuLiMatOpenInd ARGS((Pst *pst,
                                SuId suId,
                                MaDlgId suDlgId,
                                MaDlgId spDlgId, 
                                MaOpenEv *openEv));

EXTERN S16 AuLiMatOpenCfm ARGS((Pst *pst,
                                SuId suId,
                                MaDlgId suDlgId,
                                MaDlgId spDlgId, 
                                MaOpenEv *openEv));

EXTERN S16 AuLiMatCloseInd ARGS((Pst *pst,
                                 SuId suId,
                                 MaDlgId suDlgId,
                                 MaDlgId spDlgId, 
                                 MaCloseEv *closeEv));

EXTERN S16 AuLiMatDelimInd ARGS((Pst *pst,
                                SuId suId,
                                MaDlgId suDlgId,
                                MaDlgId spDlgId));

EXTERN S16 AuLiMatAbrtInd ARGS((Pst *pst,
                                SuId suId,
                                MaDlgId suDlgId,
                                MaDlgId spDlgId, 
                                MaAbrtEv *abrtEv));

EXTERN S16 AuLiMatNotInd ARGS((Pst *pst,
                                SuId suId,
                                MaDlgId suDlgId,
                                MaDlgId spDlgId,
                                RCause  cause));

EXTERN S16 AuLiMatDlgCfm ARGS((Pst *pst,
                                SuId suId,
                                MaDlgId suDlgId,
                                MaDlgId spDlgId));

EXTERN S16 AuLiMatStatInd ARGS((Pst *pst,
                                SuId suId,
                                MaDlgId  suDlgId,
                                MaInvokeId *invkId,
                                U8         primType,
                                Status status));

#ifdef MATV2
EXTERN S16 AuLiMatSteInd ARGS((Pst *pst,
                               SuId suId,
                               CmSS7SteMgmt *steMgmt,
                               MatSteMgmtEv matSteMgmtEv));

EXTERN S16 AuLiMatSteCfm ARGS((Pst *pst,
                               SuId suId,
                               CmSS7SteMgmt *steMgmt,
                               MatSteMgmtEv matSteMgmtEv));
#else
EXTERN S16 AuLiMatSteInd ARGS((Pst *pst,
                                 SuId suId,
                                 CmSS7SteMgmt *steMgmt));

EXTERN S16 AuLiMatSteCfm ARGS((Pst *pst,
                                 SuId suId,
                                 CmSS7SteMgmt *steMgmt));
#endif

EXTERN S16 AuLiMatBndReq ARGS(( Pst *pst,
                                SuId suId, 
                                SpId spId));
#ifdef AU
EXTERN S16 AuLiMatBndCfm ARGS(( Pst *pst,
                                SuId suId,
                                U8   status));
#endif

EXTERN S16 AuLiMatUbndReq ARGS((Pst *pst, 
                                SpId spId,
                                Reason resaon));

EXTERN S16 AuLiMatOpenReq ARGS((Pst *pst,
                                SpId spId,
                                MaDlgId suDlgId,
                                MaDlgId spDlgId, 
                                MaOpenEv *openEv));

EXTERN S16 AuLiMatOpenRsp ARGS((Pst *pst,
                                SpId spId,
                                MaDlgId suDlgId,
                                MaDlgId spDlgId, 
                                MaOpenEv *openEv));

EXTERN S16 AuLiMatCloseReq ARGS((Pst *pst,
                                 SpId spId,
                                 MaDlgId suDlgId,
                                 MaDlgId spDlgId, 
                                 MaCloseEv *closeEv));

#ifdef MATV2
EXTERN S16 AuLiMatDelimReq ARGS((Pst *pst,
                                SpId spId,
                                MaDlgId suDlgId,
                                MaDlgId spDlgId,
                                MaDelimReqEv delimReqEv));
#else
EXTERN S16 AuLiMatDelimReq ARGS((Pst *pst,
                                SpId spId,
                                MaDlgId suDlgId,
                                MaDlgId spDlgId));
#endif

EXTERN S16 AuLiMatAbrtReq ARGS((Pst *pst,
                                SpId spId,
                                MaDlgId suDlgId,
                                MaDlgId spDlgId, 
                                MaAbrtEv *abrtEv));

EXTERN S16 AuLiMatSteReq ARGS((Pst *pst,
                                 SpId spId,
                                 CmSS7SteMgmt *steMgmt));

EXTERN S16 AuLiMatSteRsp ARGS((Pst *pst,
                                 SpId spId,
                                 CmSS7SteMgmt *steMgmt));


/* ----------------------------------------------------------------- */
/*                 Service Specific Primitives                       */
/* ----------------------------------------------------------------- */

/* --------------- Handover Management ----------------------------- */
#if MAP_MSC
/* Handover Request, Indication, Response and Confirm */

EXTERN S16 AuLiMatHOMgmtReq ARGS((Pst  *pst,
                                   SpId spId,
                                   MaDlgId    suDlgId,
                                   MaDlgId    spDlgId,
                                   MaInvokeId *invkId,
                                   MaOprType  oprType,
                                   MaHoEv    *hoEv));

EXTERN S16 AuLiMatHOMgmtInd ARGS((Pst  *pst,
                                   SuId       suId,
                                   MaDlgId    suDlgId,
                                   MaDlgId    spDlgId,
                                   MaInvokeId *invkId,
                                   MaOprType  oprType,
                                   MaHoEv    *hoEv));

EXTERN S16 AuLiMatHOMgmtRsp ARGS((Pst  *pst,
                                   SpId spId,
                                   MaDlgId    suDlgId,
                                   MaDlgId    spDlgId,
                                   MaInvokeId *invkId,
                                   MaOprType  oprType,
                                               MaUsrErr  *usrErr,
                                   MaHoEv    *hoEv));

EXTERN S16 AuLiMatHOMgmtCfm ARGS((Pst  *pst,
                                   SuId       suId,
                                   MaDlgId    suDlgId,
                                   MaDlgId    spDlgId,
                                   MaInvokeId *invkId,
                                   MaOprType  oprType,
                                               MaUsrErr  *usrErr,
                                               MaPrvErr  *prvErr,
                                   MaHoEv    *hoEv));
#endif /* MAP_MSC */

/* --------------- Location Management ----------------------------- */
#if (defined(MAP_VLR) || defined(MAP_HLR) || defined(MAP_GSN))
/* Location Management Request and Confirm */

EXTERN S16 AuLiMatLocMgmtReq ARGS((Pst  *pst,
                                   SpId spId,
                                   MaDlgId    suDlgId,
                                   MaDlgId    spDlgId,
                                   MaInvokeId *invkId,
                                   MaOprType  oprType,
                                   MaLocEv    *locEv));

EXTERN S16 AuLiMatLocMgmtCfm ARGS((Pst  *pst,
                                   SuId       suId,
                                   MaDlgId    suDlgId,
                                   MaDlgId    spDlgId,
                                   MaInvokeId *invkId,
                                   MaOprType  oprType,
                                   MaUsrErr  *usrErr,
                                   MaPrvErr  *prvErr,
                                   MaLocEv    *locEv));

/* Location Management Indication and Response */

EXTERN S16 AuLiMatLocMgmtInd ARGS((Pst  *pst,
                                   SuId       suId,
                                   MaDlgId    suDlgId,
                                   MaDlgId    spDlgId,
                                   MaInvokeId *invkId,
                                   MaOprType  oprType,
                                   MaLocEv    *locEv));

EXTERN S16 AuLiMatLocMgmtRsp ARGS((Pst  *pst,
                                   SpId spId,
                                   MaDlgId    suDlgId,
                                   MaDlgId    spDlgId,
                                   MaInvokeId *invkId,
                                   MaOprType  oprType,
                                   MaUsrErr  *usrErr,
                                   MaLocEv    *locEv));

#endif /* MAP_VLR || MAP_HLR || MAP_GSN */

/* --------------- Authentication Management ------------------------ */
#if (MAP_VLR || MAP_GSN)
/* Authentication Management Request and Confirm */

EXTERN S16 AuLiMatAuthMgmtReq ARGS((Pst  *pst,
                                   SpId spId,
                                   MaDlgId    suDlgId,
                                   MaDlgId    spDlgId,
                                   MaInvokeId *invkId,
                                   MaOprType  oprType,
                                   MaAuthEv    *authEv));

EXTERN S16 AuLiMatAuthMgmtCfm ARGS((Pst  *pst,
                                   SuId       suId,
                                   MaDlgId    suDlgId,
                                   MaDlgId    spDlgId,
                                   MaInvokeId *invkId,
                                   MaOprType  oprType,
                                   MaUsrErr  *usrErr,
                                   MaPrvErr  *prvErr,
                                   MaAuthEv    *authEv));

#endif /* MAP_VLR || MAP_GSN */

#if MAP_HLR
/* Authentication Management Indication and Response */

EXTERN S16 AuLiMatAuthMgmtInd ARGS((Pst  *pst,
                                   SuId       suId,
                                   MaDlgId    suDlgId,
                                   MaDlgId    spDlgId,
                                   MaInvokeId *invkId,
                                   MaOprType  oprType,
                                   MaAuthEv    *authEv));

EXTERN S16 AuLiMatAuthMgmtRsp ARGS((Pst  *pst,
                                   SpId spId,
                                   MaDlgId    suDlgId,
                                   MaDlgId    spDlgId,
                                   MaInvokeId *invkId,
                                   MaOprType  oprType,
                                   MaUsrErr  *usrErr,
                                   MaAuthEv    *authEv));

#endif /* MAP_HLR */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -