1
雖然我發送MessageEventManager的包我就回stenza歌廳錯誤發送數據包時XMPP MessageEventManager錯誤?
MessageEventManager.addNotificationsRequests(message, true, true, false, false);
connection.sendPacket(message);
我已經實現了所有相關的發送消息的接口接收到的所有應答分組
像
MessageEventManager eventManager=new MessageEventManager(connection);
eventManager.addMessageEventNotificationListener(new MessageEventNotificationListener() {
@Override
public void offlineNotification(String from, String packetID) {
}
@Override
public void displayedNotification(String from, String packetID) {
DriftUtilities.showLog("EventNotification displayedNotification==> "+from+packetID);
}
@Override
public void deliveredNotification(String from, String packetID) {
}
@Override
public void composingNotification(String from, String packetID) {
DriftUtilities.showLog("EventNotification composingNotification==> "+from+packetID);
}
@Override
public void cancelledNotification(String from, String packetID) {
}
});
另一個接口
eventManager.addMessageEventRequestListener(new MessageEventRequestListener() {
@Override
public void offlineNotificationRequested(String from
, String packetID,
MessageEventManager messageEventManager) {
DriftUtilities.showLog("EventRequest offlineNotificationRequested==> "+from+packetID);
}
@Override
public void displayedNotificationRequested(String from
, String packetID,
MessageEventManager messageEventManager) {
DriftUtilities.showLog("EventRequest displayedNotificationRequested==> "+from+packetID);
}
@Override
public void deliveredNotificationRequested(String from
, String packetID,
MessageEventManager messageEventManager) {
DriftUtilities.showLog("EventRequest deliveredNotificationRequested==> "+from+packetID);
messageEventManager.sendDeliveredNotification(from, packetID);
}
@Override
public void composingNotificationRequested(String from
, String packetID,
MessageEventManager messageEventManager) {
DriftUtilities.showLog("EventRequest composingNotificationRequested==> "+from+packetID);
}
});
「我在返回stenza時發生錯誤」您是否認爲這個錯誤實際上是相關的?請告訴我們錯誤 – Flow 2014-09-21 16:38:22
@Flow,在收到任何確認消息時出現錯誤類似DefaultPacket類轉換異常。 – Alpan 2014-09-22 06:28:16