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

📄 decode.h

📁 No。7七号信令网协议64K链路协议解码程序
💻 H
字号:
// decode.h : main header file for the DECODE DLL
//

#if !defined(AFX_DECODE_H__A2D9F2F0_18BB_428D_9E39_B5A1FDBCDF75__INCLUDED_)
#define AFX_DECODE_H__A2D9F2F0_18BB_428D_9E39_B5A1FDBCDF75__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#define DECODE_DLLAPI __declspec(dllexport)   //added by me.

#include "resource.h"		// main symbols

#include "lssu.h"
#include "isup.h"
#include "tup.h"
#include "sccp.h"
#include "snmu.h"
#include "stmu.h"

/////////////////////////////////////////////////////////////////////////////
// CDecodeApp
// See decode.cpp for the implementation of this class
//

#define MAX_DATA_BYTE_NUMBER       (16)   //送显示的缩略数据长度
#define SS7_FISU_LENGTH            (3)   //FISU 的长度
#define SS7_LSSU_LENGTH            (4)   //FISU 的长度

#define SS7_SI_MASK                     (0x0F)
#define SS7_SI_OFFSET                   (3)
#define SS7_SI_SNMU                     (0)
#define SS7_SI_STMU                     (1)
#define SS7_SI_SCCP                     (3)
#define SS7_SI_TUP                      (4)
#define SS7_SI_ISUP                     (5)

class CDecodeApp : public CWinApp
{
public:
    CLssu   m_lssu;
    CIsup   m_isup;
    CTup    m_tup;
    CSccp   m_sccp;
    CSnmu   m_snmu;
    CStmu   m_stmu;


public:
	CDecodeApp();
	BOOL GetH1H0(BYTE *u_pMsg, DWORD u_msgLength, char *v_pH1H0);
	BOOL GetSls(BYTE *u_pMsg, DWORD u_msgLength, char *v_pSls);
	BOOL GetCic(BYTE *u_pMsg, DWORD u_msgLength, char *v_pCic);
	BOOL GetData(BYTE *u_pMsg, DWORD u_msgLength, char *v_pData);
	BOOL GetMessageContent(BYTE *u_pMsg, DWORD u_msgLength, char *v_pDecodeResult);
	BOOL GetMessageDecodeInfo(BYTE *u_pMsg, DWORD u_msgLength, char *v_pDecodeResult);
	BOOL msuHeadDecode(BYTE *u_pMsg, char *v_pDecodeResult, int *v_pHeadStrLen);
	void fisuDecode(BYTE *u_pMsg, char *v_pDecodeResult);

    char *ConvertOneByte(BYTE u_byte, char *v_pOutput);


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDecodeApp)
	//}}AFX_VIRTUAL

	//{{AFX_MSG(CDecodeApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DECODE_H__A2D9F2F0_18BB_428D_9E39_B5A1FDBCDF75__INCLUDED_)

⌨️ 快捷键说明

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