![]() |
C++客户端开发接口库 V5.1.8.15
连接信创集成中间件服务程序的二次开发接口
|
#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) |
调用外部Mid_Link动态链接库基本通信功能接口类,内部实例化
| mdwc::CMidLinkDLL::CMidLinkDLL | ( | ) |
构造函数
| mdwc::CMidLinkDLL::~CMidLinkDLL | ( | ) |
析构函数

| void mdwc::CMidLinkDLL::CloseCommLib | ( | ) |
关闭通信连接库

| std::string mdwc::CMidLinkDLL::Decrypt | ( | std::string | sSou, |
| int | PinKey ) |
任意长度字符串解密.
| sSou | 要解密的字符串 |
| PinKey | 加密密钥 |
| std::string mdwc::CMidLinkDLL::Decrypt10Char | ( | std::string | sSou, |
| int | PinKey ) |
长度小于10个字符串解密.
| sSou | 20位加密字符串 |
| PinKey | 加密密钥 |
| std::string mdwc::CMidLinkDLL::Encrypt | ( | std::string | sSou, |
| int | iPinKey ) |
任意长度字符串加密.
| sSou | 要加密的字符串 |
| iPinKey | 加密密钥 |
| std::string mdwc::CMidLinkDLL::Encrypt10Char | ( | std::string | sSou, |
| int | iPinKey ) |
长度小于10个字符串加密.
| sSou | 要加密的字符串 |
| iPinKey | 加密密钥 |
|
inline |
取得当前Linux环境下的发送消息管道
| std::vector< mdwc::Logon_UserInfo > mdwc::CMidLinkDLL::GetClientLoginInfo | ( | ) |
获取注册的用户信息,最多500个用户信息.
| bool mdwc::CMidLinkDLL::GetCommLinkCount | ( | int & | iMaxCount, |
| int & | iFreeCount ) |
获取当前通信连接数量
| iMaxCount | 配置允许最大数量 |
| iFreeCount | 空闲数 |
|
inline |
取得最后错误信息
| std::string mdwc::CMidLinkDLL::GetErrorMessage | ( | int | iErrorNo, |
| int | iConnectNo = 0 ) |
获取通信连接错误信息.
| iErrorNo | 错误代码 |
| iConnectNo | 通信连接号 |
| std::string mdwc::CMidLinkDLL::GetMachineID | ( | ) |
取得客户端唯一ID
| int mdwc::CMidLinkDLL::GetShowedMessage | ( | NET_MESSAGE & | retmsg | ) |
获取短消息
| retmsg | 短信消息结构 |
| std::string mdwc::CMidLinkDLL::GetVersion | ( | ) |
取得通信连接库版本.
| bool mdwc::CMidLinkDLL::InitCommLib | ( | int | hWritePipe, |
| std::string | sClientIni = "" ) |
初始化通信连接库.
| hWritePipe | Linux环境下的发送消息管道 |
| sClientIni | 客户端配置文件 |
|
inline |
加载通信连接库成功
| void mdwc::CMidLinkDLL::SetDefaultRoute | ( | uint8_t | uRouteID | ) |
设置缺省的数据路由编号,作为路由数据传送时缺省目标编号.
| uRouteID | 路由编号 |
| pCOM_Answer mdwc::CMidLinkDLL::COM_Answer |
| pCOM_CancelRequest mdwc::CMidLinkDLL::COM_CancelRequest |
| pCOM_CloseComm mdwc::CMidLinkDLL::COM_CloseComm |
| pCOM_Connect mdwc::CMidLinkDLL::COM_Connect |
| pCOM_ConnectTo mdwc::CMidLinkDLL::COM_ConnectTo |
|
protected |
|
protected |
| pCOM_DisabledTimeOut mdwc::CMidLinkDLL::COM_DisabledTimeOut |
| pCOM_DisConnect mdwc::CMidLinkDLL::COM_DisConnect |
|
protected |
|
protected |
| pCOM_GetCharSet mdwc::CMidLinkDLL::COM_GetCharSet |
| pCOM_GetClientLoginInfo mdwc::CMidLinkDLL::COM_GetClientLoginInfo |
| pCOM_GetConnectStatus mdwc::CMidLinkDLL::COM_GetConnectStatus |
| pCOM_GetField mdwc::CMidLinkDLL::COM_GetField |
| pCOM_GetFileMD5 mdwc::CMidLinkDLL::COM_GetFileMD5 |
| pCOM_GetLocalIntenetAddress mdwc::CMidLinkDLL::COM_GetLocalIntenetAddress |
|
protected |
| pCOM_GetServerInfo mdwc::CMidLinkDLL::COM_GetServerInfo |
| pCOM_GetShowedMessage mdwc::CMidLinkDLL::COM_GetShowedMessage |
| pCOM_GetVersion mdwc::CMidLinkDLL::COM_GetVersion |
|
protected |
|
protected |
|
protected |
|
protected |
| pCOM_ReceiveImage mdwc::CMidLinkDLL::COM_ReceiveImage |
| pCOM_RegisterRDMS mdwc::CMidLinkDLL::COM_RegisterRDMS |
| pCOM_RegisterUser mdwc::CMidLinkDLL::COM_RegisterUser |
| pCOM_Request mdwc::CMidLinkDLL::COM_Request |
| pCOM_RouteRequest mdwc::CMidLinkDLL::COM_RouteRequest |
| pCOM_SendMessage mdwc::CMidLinkDLL::COM_SendMessage |
| pCOM_SetCharSet mdwc::CMidLinkDLL::COM_SetCharSet |
| pCOM_SetDefaultRoute mdwc::CMidLinkDLL::COM_SetDefaultRoute |
| pCOM_UnRegisterUser mdwc::CMidLinkDLL::COM_UnRegisterUser |
| pSKT_CloseSocket mdwc::CMidLinkDLL::SKT_CloseSocket |
| pSKT_GetSocketInfo mdwc::CMidLinkDLL::SKT_GetSocketInfo |
| pSKT_Listen mdwc::CMidLinkDLL::SKT_Listen |
| pSKT_ListenComm mdwc::CMidLinkDLL::SKT_ListenComm |
| pSKT_PMPComm mdwc::CMidLinkDLL::SKT_PMPComm |
| pSKT_RecvData mdwc::CMidLinkDLL::SKT_RecvData |
| pSKT_SendData mdwc::CMidLinkDLL::SKT_SendData |
| pSKT_UnListenComm mdwc::CMidLinkDLL::SKT_UnListenComm |
| pSKT_UnPMPComm mdwc::CMidLinkDLL::SKT_UnPMPComm |