C++客户端开发接口库 V5.1.8.15
连接信创集成中间件服务程序的二次开发接口
载入中...
搜索中...
未找到
mdwc::CMidLinkDLL类 参考

#include <MidLinkDLL.h>

Public 成员函数

bool InitCommLib (int hWritePipe, std::string sClientIni="")
void CloseCommLib ()
int GetAppMainWindowHandle ()
std::string GetErrorMessage ()
std::string GetErrorMessage (int iErrorNo, int iConnectNo=0)
bool GetCommLinkCount (int &iMaxCount, int &iFreeCount)
std::vector< Logon_UserInfo > GetClientLoginInfo ()
int GetShowedMessage (NET_MESSAGE &retmsg)
std::string GetMachineID ()
std::string Encrypt10Char (std::string sSou, int iPinKey)
std::string Decrypt10Char (std::string sSou, int PinKey)
std::string Encrypt (std::string sSou, int iPinKey)
std::string Decrypt (std::string sSou, int PinKey)
 CMidLinkDLL ()
 ~CMidLinkDLL ()
bool IsLoad ()
std::string GetVersion ()
void SetDefaultRoute (uint8_t uRouteID)

Public 属性

pCOM_CloseComm COM_CloseComm
pCOM_DisConnect COM_DisConnect
pCOM_GetVersion COM_GetVersion
pCOM_SetCharSet COM_SetCharSet
pCOM_GetCharSet COM_GetCharSet
pCOM_GetLocalIntenetAddress COM_GetLocalIntenetAddress
pCOM_DisabledTimeOut COM_DisabledTimeOut
pCOM_RegisterUser COM_RegisterUser
pCOM_RegisterRDMS COM_RegisterRDMS
pCOM_UnRegisterUser COM_UnRegisterUser
pCOM_SendMessage COM_SendMessage
pCOM_GetShowedMessage COM_GetShowedMessage
pCOM_ReceiveImage COM_ReceiveImage
pCOM_GetClientLoginInfo COM_GetClientLoginInfo
pCOM_Connect COM_Connect
pCOM_ConnectTo COM_ConnectTo
pCOM_Request COM_Request
pCOM_RouteRequest COM_RouteRequest
pCOM_CancelRequest COM_CancelRequest
pCOM_Answer COM_Answer
pCOM_GetConnectStatus COM_GetConnectStatus
pCOM_GetServerInfo COM_GetServerInfo
pCOM_GetField COM_GetField
pCOM_GetFileMD5 COM_GetFileMD5
pCOM_SetDefaultRoute COM_SetDefaultRoute
pSKT_Listen SKT_Listen
pSKT_ListenComm SKT_ListenComm
pSKT_PMPComm SKT_PMPComm
pSKT_UnListenComm SKT_UnListenComm
pSKT_UnPMPComm SKT_UnPMPComm
pSKT_GetSocketInfo SKT_GetSocketInfo
pSKT_CloseSocket SKT_CloseSocket
pSKT_SendData SKT_SendData
pSKT_RecvData SKT_RecvData

Protected 属性

pCOM_InitComm COM_InitComm
pCOM_InitCommAuth COM_InitCommAuth
pCOM_InitCommFile COM_InitCommFile
pCOM_MaxLinkCount COM_MaxLinkCount
pCOM_GetMachineID COM_GetMachineID
pCOM_encrypt COM_encrypt
pCOM_decrypt COM_decrypt
pCOM_encrypt2 COM_encrypt2
pCOM_decrypt2 COM_decrypt2

详细描述

调用外部Mid_Link动态链接库基本通信功能接口类,内部实例化

构造及析构函数说明

◆ CMidLinkDLL()

mdwc::CMidLinkDLL::CMidLinkDLL ( )

构造函数

◆ ~CMidLinkDLL()

mdwc::CMidLinkDLL::~CMidLinkDLL ( )

析构函数

函数调用图:

成员函数说明

◆ CloseCommLib()

void mdwc::CMidLinkDLL::CloseCommLib ( )

关闭通信连接库

这是这个函数的调用关系图:

◆ Decrypt()

std::string mdwc::CMidLinkDLL::Decrypt ( std::string sSou,
int PinKey )

任意长度字符串解密.

参数
sSou要解密的字符串
PinKey加密密钥
返回
返回解密字符串

◆ Decrypt10Char()

std::string mdwc::CMidLinkDLL::Decrypt10Char ( std::string sSou,
int PinKey )

长度小于10个字符串解密.

参数
sSou20位加密字符串
PinKey加密密钥
返回
返回解密字符串

◆ Encrypt()

std::string mdwc::CMidLinkDLL::Encrypt ( std::string sSou,
int iPinKey )

任意长度字符串加密.

参数
sSou要加密的字符串
iPinKey加密密钥
返回
返回加密字符串

◆ Encrypt10Char()

std::string mdwc::CMidLinkDLL::Encrypt10Char ( std::string sSou,
int iPinKey )

长度小于10个字符串加密.

参数
sSou要加密的字符串
iPinKey加密密钥
返回
返回20位加密字符串

◆ GetAppMainWindowHandle()

int mdwc::CMidLinkDLL::GetAppMainWindowHandle ( )
inline

取得当前Linux环境下的发送消息管道

◆ GetClientLoginInfo()

std::vector< mdwc::Logon_UserInfo > mdwc::CMidLinkDLL::GetClientLoginInfo ( )

获取注册的用户信息,最多500个用户信息.

返回
返回注册的用户信息列表

◆ GetCommLinkCount()

bool mdwc::CMidLinkDLL::GetCommLinkCount ( int & iMaxCount,
int & iFreeCount )

获取当前通信连接数量

参数
iMaxCount配置允许最大数量
iFreeCount空闲数
返回
成功、失败

◆ GetErrorMessage() [1/2]

std::string mdwc::CMidLinkDLL::GetErrorMessage ( )
inline

取得最后错误信息

◆ GetErrorMessage() [2/2]

std::string mdwc::CMidLinkDLL::GetErrorMessage ( int iErrorNo,
int iConnectNo = 0 )

获取通信连接错误信息.

参数
iErrorNo错误代码
iConnectNo通信连接号
返回
返回错误信息描述

◆ GetMachineID()

std::string mdwc::CMidLinkDLL::GetMachineID ( )

取得客户端唯一ID

◆ GetShowedMessage()

int mdwc::CMidLinkDLL::GetShowedMessage ( NET_MESSAGE & retmsg)

获取短消息

参数
retmsg短信消息结构
返回
0没有消息,1成功取得,2表示还有后续记录没有获取,<0为错误代码

◆ GetVersion()

std::string mdwc::CMidLinkDLL::GetVersion ( )

取得通信连接库版本.

返回
返回版本信息

◆ InitCommLib()

bool mdwc::CMidLinkDLL::InitCommLib ( int hWritePipe,
std::string sClientIni = "" )

初始化通信连接库.

参数
hWritePipeLinux环境下的发送消息管道
sClientIni客户端配置文件
返回
成功返回true,失败返回false

◆ IsLoad()

bool mdwc::CMidLinkDLL::IsLoad ( )
inline

加载通信连接库成功

◆ SetDefaultRoute()

void mdwc::CMidLinkDLL::SetDefaultRoute ( uint8_t uRouteID)

设置缺省的数据路由编号,作为路由数据传送时缺省目标编号.

参数
uRouteID路由编号

类成员变量说明

◆ COM_Answer

pCOM_Answer mdwc::CMidLinkDLL::COM_Answer

◆ COM_CancelRequest

pCOM_CancelRequest mdwc::CMidLinkDLL::COM_CancelRequest

◆ COM_CloseComm

pCOM_CloseComm mdwc::CMidLinkDLL::COM_CloseComm

◆ COM_Connect

pCOM_Connect mdwc::CMidLinkDLL::COM_Connect

◆ COM_ConnectTo

pCOM_ConnectTo mdwc::CMidLinkDLL::COM_ConnectTo

◆ COM_decrypt

pCOM_decrypt mdwc::CMidLinkDLL::COM_decrypt
protected

◆ COM_decrypt2

pCOM_decrypt2 mdwc::CMidLinkDLL::COM_decrypt2
protected

◆ COM_DisabledTimeOut

pCOM_DisabledTimeOut mdwc::CMidLinkDLL::COM_DisabledTimeOut

◆ COM_DisConnect

pCOM_DisConnect mdwc::CMidLinkDLL::COM_DisConnect

◆ COM_encrypt

pCOM_encrypt mdwc::CMidLinkDLL::COM_encrypt
protected

◆ COM_encrypt2

pCOM_encrypt2 mdwc::CMidLinkDLL::COM_encrypt2
protected

◆ COM_GetCharSet

pCOM_GetCharSet mdwc::CMidLinkDLL::COM_GetCharSet

◆ COM_GetClientLoginInfo

pCOM_GetClientLoginInfo mdwc::CMidLinkDLL::COM_GetClientLoginInfo

◆ COM_GetConnectStatus

pCOM_GetConnectStatus mdwc::CMidLinkDLL::COM_GetConnectStatus

◆ COM_GetField

pCOM_GetField mdwc::CMidLinkDLL::COM_GetField

◆ COM_GetFileMD5

pCOM_GetFileMD5 mdwc::CMidLinkDLL::COM_GetFileMD5

◆ COM_GetLocalIntenetAddress

pCOM_GetLocalIntenetAddress mdwc::CMidLinkDLL::COM_GetLocalIntenetAddress

◆ COM_GetMachineID

pCOM_GetMachineID mdwc::CMidLinkDLL::COM_GetMachineID
protected

◆ COM_GetServerInfo

pCOM_GetServerInfo mdwc::CMidLinkDLL::COM_GetServerInfo

◆ COM_GetShowedMessage

pCOM_GetShowedMessage mdwc::CMidLinkDLL::COM_GetShowedMessage

◆ COM_GetVersion

pCOM_GetVersion mdwc::CMidLinkDLL::COM_GetVersion

◆ COM_InitComm

pCOM_InitComm mdwc::CMidLinkDLL::COM_InitComm
protected

◆ COM_InitCommAuth

pCOM_InitCommAuth mdwc::CMidLinkDLL::COM_InitCommAuth
protected

◆ COM_InitCommFile

pCOM_InitCommFile mdwc::CMidLinkDLL::COM_InitCommFile
protected

◆ COM_MaxLinkCount

pCOM_MaxLinkCount mdwc::CMidLinkDLL::COM_MaxLinkCount
protected

◆ COM_ReceiveImage

pCOM_ReceiveImage mdwc::CMidLinkDLL::COM_ReceiveImage

◆ COM_RegisterRDMS

pCOM_RegisterRDMS mdwc::CMidLinkDLL::COM_RegisterRDMS

◆ COM_RegisterUser

pCOM_RegisterUser mdwc::CMidLinkDLL::COM_RegisterUser

◆ COM_Request

pCOM_Request mdwc::CMidLinkDLL::COM_Request

◆ COM_RouteRequest

pCOM_RouteRequest mdwc::CMidLinkDLL::COM_RouteRequest

◆ COM_SendMessage

pCOM_SendMessage mdwc::CMidLinkDLL::COM_SendMessage

◆ COM_SetCharSet

pCOM_SetCharSet mdwc::CMidLinkDLL::COM_SetCharSet

◆ COM_SetDefaultRoute

pCOM_SetDefaultRoute mdwc::CMidLinkDLL::COM_SetDefaultRoute

◆ COM_UnRegisterUser

pCOM_UnRegisterUser mdwc::CMidLinkDLL::COM_UnRegisterUser

◆ SKT_CloseSocket

pSKT_CloseSocket mdwc::CMidLinkDLL::SKT_CloseSocket

◆ SKT_GetSocketInfo

pSKT_GetSocketInfo mdwc::CMidLinkDLL::SKT_GetSocketInfo

◆ SKT_Listen

pSKT_Listen mdwc::CMidLinkDLL::SKT_Listen

◆ SKT_ListenComm

pSKT_ListenComm mdwc::CMidLinkDLL::SKT_ListenComm

◆ SKT_PMPComm

pSKT_PMPComm mdwc::CMidLinkDLL::SKT_PMPComm

◆ SKT_RecvData

pSKT_RecvData mdwc::CMidLinkDLL::SKT_RecvData

◆ SKT_SendData

pSKT_SendData mdwc::CMidLinkDLL::SKT_SendData

◆ SKT_UnListenComm

pSKT_UnListenComm mdwc::CMidLinkDLL::SKT_UnListenComm

◆ SKT_UnPMPComm

pSKT_UnPMPComm mdwc::CMidLinkDLL::SKT_UnPMPComm

该类的文档由以下文件生成:
  • E:/GreatMIMP.Linux.Client/MDWClient/MidLinkDLL.h
  • E:/GreatMIMP.Linux.Client/MDWClient/MidLinkDLL.cpp