【发布时间】:2014-05-15 10:41:58
【问题描述】:
我在聊天应用程序的 android 设备中使用 presistent xmpp 连接。 为了保持连接打开,我想使用 TCP HEARTBEAT 机制。我只想知道心跳步骤何时完成:
1. when a packet is sent on server and a response comes from server (Two steps)
2. Or just packet sending is done from client side (1 step)
如何使用 smack 库。是否使用 KeepAliveManager 类?
【问题讨论】: