【问题标题】:ios File transfer by xmppframeworkios 通过 xmppframework 传输文件
【发布时间】:2013-06-13 15:44:53
【问题描述】:

我使用 xep0096 和 xep0065 完成文件转换,并将文件从 spark 发送到 ios 模拟器。 openfire 服务器设置:

xmpp.auth.anonymous true
xmpp.domain mydomain
xmpp.filetransfer.enabled true
xmpp.proxy.enabled true
xmpp.proxy.externalip 114.xxx.xxx.xxx
xmpp.proxy.port 7777
xmpp.proxy.transfer.required false
xmpp.session.conflict-limit 0
xmpp.socket.ssl.active true

前面表现很好,但是 spark 发送激活 xml 信息是这样的:

<iq id="da0Di-69" to="proxy.mydomain" type="set">
  <query xmlns="http://jabber.org/protocol/bytestreams" sid="jsi_8730437306760952695">
    <activate>ios@mydomain/leestarxin</activate>
  </query>
</iq>

服务器返回

<iq id="da0Di-69" to="spark@mydomain/leestarxin" from="proxy.mydomain" type="error">
  <error code="405" type="CANCEL">
    <not-allowed xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
  </error>
</iq>

查找xep0065,发现错误405:

<not-allowed/> if only one party (either Requester or Recipient, but not both) is connected to the Proxy

为什么会返回这个错误?谁能帮帮我? 谢谢!

补充:

我可以收到回调

- (void)turnSocket:(TURNSocket *)sender didSucceed:(GCDAsyncSocket *)socket

但无法获取任何数据。

【问题讨论】:

  • 我也更改了上述设置,但我收到连接失败回调。你能解飞机吗

标签: ios xmpp file-transfer


【解决方案1】:

我的回答迟了,问题也很老了,但可能对其他人有帮助。查看Jonathon StaffXMPPFramework 的最新推送。链接here

【讨论】:

    猜你喜欢
    • 2013-12-04
    • 2013-12-05
    • 1970-01-01
    • 2014-03-16
    • 2011-05-26
    • 2013-03-27
    • 2011-01-31
    • 2015-08-04
    • 2012-04-10
    相关资源
    最近更新 更多