android - CWNAN0020W 套接字 4 上的套接字错误,对等地址 <IP 地址> :57710; ending connection

标签 android notifications push mqtt broker

我已经为 Really Small 消息代理 (RSMB MQTT) 安装了 php SAM 库。我正在尝试连接 Android Push Demo,但出现以下错误

[root@user linux_ia64]# tail -f nohup.out
20120501 120111.226 CWNAN9997I Licensed Materials - Property of IBM
20120501 120111.226 CWNAN9996I Copyright IBM Corp. 2007, 2010 All Rights Reserved
20120501 120111.226 CWNAN9995I US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
20120501 120111.226 CWNAN0053I Version 1.2.0, Aug 18 2010 17:02:09
20120501 120111.226 CWNAN0054I Features included: bridge
20120501 120111.226 CWNAN9993I Author: Ian Craggs (icraggs@uk.ibm.com)
20120501 120111.226 CWNAN0014I MQTT protocol starting, listening on port 1883

20120501 120126.609 CWNAN0020W Socket error on socket 4, peer address ipaddress:34861; ending connection

请任何人帮助解决上述问题。

最佳答案

您在哪里运行 PHP 服务器?有没有可能是您与 MQTT 代理之间的连接有问题?

SAM PHP 库很旧,目前没有维护,因此您可能想看看其他 PHP MQTT 选项之一,例如 phpMQTT。

关于android - CWNAN0020W 套接字 4 上的套接字错误,对等地址 <IP 地址> :57710; ending connection,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10394602/

相关文章:

android - 为什么 Worklight 应用程序需要 Worklight Server?

java - 旧设备中的 PreferenceFragment?

java - 如何抑制新短信通知?

android: NotificationManager 无法解析为变量

android - 我可以将设备 token 导入 Urban Airship 吗?

ios - 从网络应用程序在 iOS 上推送通知

android - 如何更换android中的默认壁纸

php - Phonegap php header 重定向在 android 中不起作用

ios - UNNotificationSound.default() 是什么声音?

c++ - 使用推送时队列程序中的段错误