📄 class_c_m_p_p_client.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=gb2312"><title>cmpp3api: CMPPClient类参考</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- 制作者 Doxygen 1.5.1-p1 --><div class="tabs"> <ul> <li><a href="main.html"><span>首页</span></a></li> <li id="current"><a href="annotated.html"><span>类</span></a></li> <li><a href="files.html"><span>文件</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="annotated.html"><span>组合类型列表</span></a></li> <li><a href="hierarchy.html"><span>类继承关系</span></a></li> <li><a href="functions.html"><span>组合类型成员</span></a></li> </ul></div><h1>CMPPClient类参考</h1><!-- doxytag: class="CMPPClient" --><code>#include <<a class="el" href="cmppconn_8h-source.html">cmppconn.h</a>></code><p>CMPPClient合作图:<center><font size="2">[<a target="top" href="graph_legend.html">图例</a>]</font></center><a href="class_c_m_p_p_client-members.html">所有成员的列表。</a><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>JobProcess functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">BOOL </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#7fde4a592084f38a1a52d735f94dfd36">ProcessConnectionSubmiting</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__submit.html">cmpp_submit</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#6706adcb78416ac13096644364e77eb8">ProcessConnectionSubmited</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__submit.html">cmpp_submit</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#cb33c6841cd2906a6c3a196a276634a5">ProcessConnectionSubmitFailed</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__submit.html">cmpp_submit</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#2b8f93dd80d3f0fc6456ce8b890595be">ProcessReceivedConnectionConnectResponse</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__connect__resp.html">cmpp_connect_resp</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#1b58f3930df886242d11c1a788f70a18">ProcessReceivedConnectionTerminate</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#1ec0ee341c83af5a492b41ebb558ec3e">ProcessReceivedConnectionSubmitResponse</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__submit__deliver__resp.html">cmpp_submit_deliver_resp</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#2ded4bc4e919492b1009c3363eef8187">ProcessReceivedConnectionDeliver</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__deliver.html">cmpp_deliver</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#6fa989072f9b58a621958936e2cf691a">ProcessReceivedConnectionStatusReport</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__deliver.html">cmpp_deliver</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#7d4f93f8baf895c8b72a4893970ef352">ProcessReceivedConnectionQueryResponse</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__query__resp.html">cmpp_query_resp</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#fb01d17fcd3f7e60f276a54cfb2e69af">ProcessReceivedConnectionCancelResponse</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__cancel__resp.html">cmpp_cancel_resp</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#9e49dd915f956210b836f75c24e65bb5">ProcessReceivedConnectionActiveTest</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#4b3a40118bf4a1df1317edd4a478df3e">ProcessReceivedConnectionActiveTestResponse</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">CString </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#477f9812c8985091e6ea68915e0630b9">CreateToken</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#ac3e7b6c7c583fd489da7a7c182eca15">firstFitRouter</a> (int start)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#85240ecbf3c249ad7f1ce63a9181934d">roundRobinRouter</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#42f76200eca3989a412dc640055ade8f">LogWrite</a> (LPCTSTR pchFmt,...)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#1942c670d9420cf588ad5f8da14ea4e6">MakeSubmit</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__submit.html">cmpp_submit</a> &message)</td></tr><tr><td colspan="2"><br><h2>公有成员</h2></td></tr><tr><td colspan="2"><div class="groupHeader">GetFunctions</div></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#5912c6e81f9427a4013f40e426ea53cb">GetSubmitCount</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#48491405592965de241aefc8f06bdb00">GetSubmitSucceedCount</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#b0fecad6e47ee8175c166b808e3d200c">GetSubmitFailedCount</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#dae7357e7bc098f351f900016fdbda64">GetRespFailedCount</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#7a820e5cf70a2a73e21c252a5cff953f">GetRespSucceedCount</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#142954bf81736c69465bcf1f038a9074">GetDeliverCount</a> () const</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#05300be691d12b9e3af1972e514f289b">GetStatusReportCount</a> () const</td></tr><tr><td colspan="2"><div class="groupHeader">Main Functions</div></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#f9581ebf0d08c9380ff1da69d34b21c2">Initialize</a> (unsigned nMinWorkThreadsCount=4, unsigned nMaxWorkThreadsCount=8)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#a7e800c2863e57f8a60951369df74deb">MakeConnection</a> (const CString &_smghost, const unsigned short &_smgport, const unsigned char &_smgversion, const CString &_username, const CString &_password, const CString &_icpid, const <a class="el" href="cmppconn_8h.html#a1f0e2efd52935fd01bfece0fbead81f">ConnectionType</a> &_conntype, const BOOL &_isAsiaInfoSmg, const int &_nActivetestInterval, BOOL sync)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#b715e1046307884b079c201b6ccc6f84">Release</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#d426dae1497f07cdbea4d8f415524500">ClearConnection</a> (CString token)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#a561cc3c136d7039a6fd7dfaead2643c">ClearAllConnections</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#13a18eaf2fff4b1e58c0ee93bdd94d7a">Submit</a> (<a class="el" href="structcmpp__submit.html">cmpp_submit</a> &message)</td></tr><tr><td colspan="2"><div class="groupHeader">Callback functions</div></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#6b5ed8ef9984ea27d42f9a4a24de7d9b">OnConnectionLogined</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#7e60f81fd2859d411c3f2f6d49e5960e">OnConnectionLoginFailed</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, int errorCode)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#b83f8ce6e9c6c96539b4d2c96fde3ad2">OnConnectionCleared</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual BOOL </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#f6406f628316faa160a73d081afa6873">OnConnectionSubmiting</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__submit.html">cmpp_submit</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#ac37788a2a4456c88b194e1cae36d2bc">OnConnectionSubmited</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__submit.html">cmpp_submit</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#7b79c1f27549ff9661dbf542cf742880">OnConnectionSubmitFailed</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__submit.html">cmpp_submit</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#542764c3f2c76d1422a21e9af2b16ba8">OnReceivedConnectionConnectResponse</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__connect__resp.html">cmpp_connect_resp</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#1a57518153506f7357888b190e4e54e5">OnReceivedConnectionTerminate</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#6b27d7076397bb4467e044f535e2afc0">OnReceivedConnectionSubmitResponse</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__submit__deliver__resp.html">cmpp_submit_deliver_resp</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#e67a426c56dce6bded11546c30847a91">OnReceivedConnectionDeliver</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__deliver.html">cmpp_deliver</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#cd861b566b3210274850602be676a3d9">OnReceivedConnectionStatusReport</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__deliver.html">cmpp_deliver</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#2a8c98ef870a512964f29a3bc122c9b7">OnReceivedConnectionQueryResponse</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__query__resp.html">cmpp_query_resp</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#e09d81a1d7eaad304214252a20421e04">OnReceivedConnectionCancelResponse</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, <a class="el" href="structcmpp__cancel__resp.html">cmpp_cancel_resp</a> _message)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#ec6f1123537acee0851e5671f0c29167">OnReceivedConnectionActiveTest</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#5c538eadc65553a6244fcd67049899c2">OnReceivedConnectionActiveTestResponse</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_m_p_p_client.html#68360a5524c3109edd35e47b05144196">OnConnectionLogWrite</a> (<a class="el" href="class_c_m_p_p_connection.html">CMPPConnection</a> &connection, const char *str)</td></tr></table><hr><h2>构造及析构函数文档</h2><a class="anchor" name="7cd3c869642faa1b4b500f4bd538ad5d"></a><!-- doxytag: member="CMPPClient::CMPPClient" ref="7cd3c869642faa1b4b500f4bd538ad5d" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">CMPPClient::CMPPClient </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p></div></div><p><a class="anchor" name="e7e036414777f90bb9cfea0494f1019e"></a><!-- doxytag: member="CMPPClient::~CMPPClient" ref="e7e036414777f90bb9cfea0494f1019e" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">CMPPClient::~CMPPClient </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p></div></div><p><a class="anchor" name="7cd3c869642faa1b4b500f4bd538ad5d"></a><!-- doxytag: member="CMPPClient::CMPPClient" ref="7cd3c869642faa1b4b500f4bd538ad5d" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">CMPPClient::CMPPClient </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p></div></div><p><a class="anchor" name="e7e036414777f90bb9cfea0494f1019e"></a><!-- doxytag: member="CMPPClient::~CMPPClient" ref="e7e036414777f90bb9cfea0494f1019e" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">CMPPClient::~CMPPClient </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p></div></div><p><hr><h2>成员函数文档</h2><a class="anchor" name="5912c6e81f9427a4013f40e426ea53cb"></a><!-- doxytag: member="CMPPClient::GetSubmitCount" ref="5912c6e81f9427a4013f40e426ea53cb" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">long CMPPClient::GetSubmitCount </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>得到提交的SUBMIT消息数 </div></div><p><a class="anchor" name="48491405592965de241aefc8f06bdb00"></a><!-- doxytag: member="CMPPClient::GetSubmitSucceedCount" ref="48491405592965de241aefc8f06bdb00" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">long CMPPClient::GetSubmitSucceedCount </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>得到发送成功的SUBMIT消息数 </div></div><p><a class="anchor" name="b0fecad6e47ee8175c166b808e3d200c"></a><!-- doxytag: member="CMPPClient::GetSubmitFailedCount" ref="b0fecad6e47ee8175c166b808e3d200c" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">long CMPPClient::GetSubmitFailedCount </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>得到发送失败的SUBMIT消息数 </div></div><p><a class="anchor" name="dae7357e7bc098f351f900016fdbda64"></a><!-- doxytag: member="CMPPClient::GetRespFailedCount" ref="dae7357e7bc098f351f900016fdbda64" args="() const" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">long CMPPClient::GetRespFailedCount </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>得到失败的SUBMITResponse消息数 </div></div><p><a class="anchor" name="7a820e5cf70a2a73e21c252a5cff953f"></a><!-- doxytag: member="CMPPClient::GetRespSucceedCount" ref="7a820e5cf70a2a73e21c252a5cff953f" args="() const" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -