📄 icpsconn.h
字号:
// The following ifdef block is the standard way of creating macros which make exporting
// from a DLL simpler. All files within this DLL are compiled with the ICPSConn_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see
// ICPSConn_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.
//#ifdef ICPSConn_EXPORTS
#define ICPSConn_API __declspec(dllexport)
//#else
//#define ICPSConn_API __declspec(dllimport)
//#endif
// This class is exported from the ICPSConn.dll
#include "afxtempl.h"
//#include "Log.h"
#define TAG_DESTMOBILE_TYPE 0x0001
#define TAG_FEETERMINAL_TYPE 0x0002
#define TAG_LINKID 0x0003
#define TAG_TP_PID 0x0004
#define TAG_TP_UDHI 0x0005
#define TAG_MORELATETOMTFLAG 0x0006
#define TAG_MESSAGE_TYPE 0x0007
class ICPSConn_API ICPSConn {
public:
ICPSConn();
virtual ~ICPSConn();
int SetXMLMultiMsg(char *pszDestMobile,
int iNeedReply,
int iMsgLevel,
char *pszServiceId, char *pszSubId,
char *pszFeeType, char *pszFeeCode,
char *pszSrcTermId,
char *pszSrcGwId,
char *pszAtTime,
int iMsgFmt, CStringList &pContentList);
int SetXMLSingleMsg(char* pszDestMobile,
int iNeedReply,
int iMsgLevel,
char* pszServiceId, char* pszSubId,
char* pszFeeType, char* pszFeeCode,
char* pszSrcTermId,
char* pszSrcGwId,
char* pszAtTime,
int iMsgFmt, char* pszContent);//, char *outxml);
int SetXMLBinMsg(char* pszDestMobile,
int iNeedReply,
int iMsgLevel,
char* pszServiceId, char* pszSubId,
char* pszFeeType, char* pszFeeCode,
char* pszSrcTermId,
char* pszSrcGwId,
char* pszAtTime,
int iLen, char *pszContent);
int Submit(char *pszIP, int iPort, int &iCount, char *pszResult);
int SetMsg(char* pszDestMobile,
UINT iNeedReply,
UINT iMsgLevel,
char* pszServiceId, char* pszSubId,
char* pszFeeType, char* pszFeeCode,
char* pszSrcTermId,
char* pszSrcGwId,
char* pszAtTime,
UINT iMsgFmt, UINT iLen, char* pszContent);
int AddOneTLV(__int16 iTag, __int16 iLen, LPVOID pValue);
private:
char pszXML[5000];
char buf[4000];
int iBufLen;
BOOL boolSetXMLMsg;
BOOL boolSetMsg;
typedef struct typerevpak
{
UINT iLen;
UINT iResult;
UINT iCause;
char szResult[101];
}REVPAK;
int TestCommonPara(char *pszDestMobile,
int* iNeedReply,
int iMsgLevel,
char *pszServiceId, char *pszSubId,
char *pszFeeType, char *pszFeeCode,
char *pszSrcTermId,
char *pszSrcGwId,
char *pszAtTime);
int SetReferMsg(char *pszDestMobile,
int iNeedReply,
int iMsgLevel,
char *pszServiceId, char *pszSubId,
char *pszFeeType, char *pszFeeCode,
char *pszSrcTermId,
char *pszSrcGwId,
char *pszAtTime);
int BtoA( char returnData[], char inData[],int nLen);
typedef struct tagRouter
{
TCHAR szIP[64];
int nPort;
}Router;
void GetRouterList(CList<Router,Router&>* pList);
void AddOneRouter(CList<Router,Router&>* pList, Router* pRouter);
int GetNeedReply();
int Send(char *pszIP, int iPort, int &iCount, char *pszResult);
//Log
// CLog m_Log;
void Log(LPCTSTR pszContent);
// void StartLog();
// void EndLog();
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -