📄 tcapstructmj.h
字号:
#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];
}MSU, *PMSU;
typedef struct TCAP_TAG_TIMERNODE
{
DWORD dwInvCounter;
DWORD dwRejCounter;
BYTE ucOperateKind;
bool bBusyFlag;
bool bInvCreatedFlag;
BOOL bRejCreatedFlag;
BYTE ucState;
}TCAP_TIMERNODE, *PTCAP_TIMERNODE;
typedef struct TCAP_TAG_TIMERMANAGE
{
int nTimerCount;
int nFirstTimerId;
TCAP_TAG_TIMERNODE TimerNode[InvokeIDNUM];
}TCAP_TIMERMANAGE, *PTCAP_TIMERMANAGE;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -