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

📄 tcapstruct.h

📁 三汇CTI示例程序源码
💻 H
字号:

#define     DefaultSs7TestConfigName   "TestConfig.ini"
#define     DefaultSs7ServerConfigName "Ss7server.ini"
#define     DLONG                      _int64
#define     CallCycleLength            8
#define     ServeListenPort	           1024
#define     MaxChannelCount            256
#define     MaxDpcCount                256

#define		HashTableLen                256
#define     MaxHashNode                 MaxDpcCount
#define     InvalidHashIndex            0

#define     LOW_BYTE(x)      *(BYTE *)&x
#define     HIGH_BYTE(x)     *((BYTE *)&x+1)

#define     MaxAddrNumCount     	64
#define		MemSizeForCMP  4096  
#define		DialogueIDNUM  65536 
#define		InvocationIDNUM   256  
#define     InvokeIDNUM       256
#define		PrimHeaderLen  16    
#define     AvailTimerTotal 128  
#define		MaxComponentLength 4096

#define     DEBUG
#define     MTP3

typedef union
{
	unsigned long	ll;
	unsigned short	ww[2];
	unsigned char	bb[4];
}LTOWB;

typedef struct ADDRESS_TAG
{
	BYTE  ucFlag;
	BYTE  ucLen;
	BYTE  ucSsnInd;
	BYTE  ucSsn;
	BYTE  ucSpcInd;
	LTOWB Spc;
	BYTE  ucRoutingInd;
	BYTE  ucGtInd;
	struct
	{
		BYTE ucAddrNature;
		BYTE ucTransType;
		BYTE ucNumberPlan;
		BYTE ucEncodingScheme;
		BYTE ucAddrCount;
		BYTE ucAddrInfo[MaxAddrNumCount];
	}GT;
}TandSTest_ADDRESS, *PTandSTest_ADDRESS;

//DataKinetics Sourece: MSG.H
typedef struct TandSTest_PRIMITIVE_HEADER
{
	WORD	wMsgType;
	WORD	wDialogueID;//wInstanceId;	
	BYTE  	ucSrcTaskId;
	BYTE	ucDstTaskId;
	WORD	wRspReqFlag;
	BYTE	ucClass;	
	BYTE	ucStatus;	
	DWORD	dwErrInfo;
	WORD    wParaLen;
}PRIMITIVE_HEADER, *PPRIMITIVE_HEADER;

typedef struct TandSTest_SCMG_MESSAGE
{
	LTOWB  DPC;
	BYTE   ucPrimType;
	BYTE   ucTransInform;		

	BYTE   ucSccpStatus;
	BYTE   ucFormatId;
	BYTE   ucAffectedSSN;
	LTOWB  AffectedPC;
	BYTE   ucSMI;
	BYTE   ucCongestion;	
}SCMG_MESSAGE, *PSCMG_MESSAGE;

typedef struct TEST_CHANNEL
{	
	int    hThreadHandle;
	int    nSocketId;
	int    nSelfPort;
	int    nPeerPort;		
	int    nChannelType;
	int    nChannelState;
	int    nSetFlage;
	LTOWB  nPeerIP;
	LTOWB  PeerPC;
}TandSTest_TEST_CHANNEL, *PTandSTest_TEST_CHANNEL;

typedef struct TEST_TAG_CHANNEL_CONTROL
{
	int     nChannelCount;
	TandSTest_TEST_CHANNEL  Channel[MaxChannelCount];
}TandSTest_CHANNEL_CONTROL, *PTandSTest_CHANNEL_CONTROL;

typedef struct TandSTest_TAG_Hash_Node
{
	DWORD  dwHashKey;
	int    nNodeData;
	int    nNextNode;
}TandSTest_Hash_Node, *PTandSTest_Hash_Node;

typedef struct  TandSTest_TAG_HASH_TABLE
{
	TandSTest_Hash_Node Node[MaxDpcCount]; 
	int   nIdleNodeTop;
	int   nNodeCount;
	int   nHashIndex[HashTableLen];	
}TandSTest_HASH_TABLE, *PTandSTest_HASH_TABLE;

typedef struct TandSTest_TAG_MESSAGE
{
	PRIMITIVE_HEADER primHeader;
	int nTotalDialogueID;
	TandSTest_ADDRESS CdPA;
	TandSTest_ADDRESS CgPA;

}TandSTest_MESSAGE, *PTandSTest_MESSAGE;


typedef struct tagTCP_MSG_HEAD{
	UCHAR		ucType;
	UCHAR		ucPara;
}TCP_MSG_HEAD, *PTCP_MSG_HEAD;

typedef struct tagTCP_MSG{
	UCHAR		ucType;
	UCHAR		ucPara;
	UCHAR		ucMsu[274 + 2];
}TCP_MSG, *PTCP_MSG;

typedef struct tagMSU{
	WORD	wLength;
	UCHAR	ucMsgBuf[274 + 2];		// SIO=ucMsgBuf[0],SIF=ucMsgBuf[1]…
}MSU, *PMSU;

#define		InvocationIDNUM   256

typedef struct TCAP_TAG_TIMERNODE
{
	DWORD   dwInvCounter;         
	DWORD   dwRejCounter;		  
	BYTE	ucOperateKind;        
    BOOL	bBusyFlag;            
	BOOL	bInvCreatedFlag;	  
	BOOL    bRejCreatedFlag;      
//	BYTE    ucCurInvID;           
	BYTE    ucState;              
}TCAP_TIMERNODE, *PTCAP_TIMERNODE;

typedef struct TCAP_TAG_TIMERMANAGE
{    
	int                   nTimerCount;                  
	int                   nFirstTimerId;               
	TCAP_TAG_TIMERNODE    TimerNode[InvokeIDNUM];   
}TCAP_TIMERMANAGE, *PTCAP_TIMERMANAGE;

typedef struct TCAP_TAG_CONFIG
{
	int		nTotalDialogueID;
	BOOL	bLoopTest;
	BOOL	bClose;
	BOOL	bStart;
	char	szOutputMessage[100];
	int		nOpc[4];
	int		nDpc[4];
	int		nCountReceivedMsg;
	int		nErrorInfoCount;
}TCAP_CONFIG, *PTCAP_CONFIG;

⌨️ 快捷键说明

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