2017-06-06 117 views
0

任何人都可以詳細告訴我什麼是以下方法的確切用法?聊天應用程序Android使用ejabberd 16和XMPP

XMPPTCPConnection.setUseStreamManagementDefault(false); 
    XMPPTCPConnection.setUseStreamManagementResumptiodDefault(false); 
    XMPPTCPConnection.setUseStreamManagementResumption(false); 

我想讓用戶在互聯網連接丟失時離線。

我已經實現mod_ping在服務器如下

[{send_pings, true}, {ping_interval, 2}, 
{ping_ack_timeout, 2}, 
{timeout_action, kill}] 

回答

1
XMPPTCPConnection.setUseStreamManagementDefault(false); 
// Set if Stream Management should be used by default for new connections. 

    XMPPTCPConnection.setUseStreamManagementResumptiodDefault(false); 

// Set if Stream Management resumption should be used by default for new connections. 

    XMPPTCPConnection.setUseStreamManagementResumption(false); 

// Set if Stream Management resumption should be used if supported by the server. 

更多的細節來看看here