关于 XMPP xep-0065 和 xep-0096 的混淆 [英] confusion regarding XMPP xep-0065 and xep-0096

查看:24
本文介绍了关于 XMPP xep-0065 和 xep-0096 的混淆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在研究 xmppframework,要求是在两部 iPhone 之间传输文件.我搜索了 XEP,找到了 0065 和 0096

I am currently working on xmppframework, Requirements are to transfer the file between two iPhones. I searched for XEPs and found 0065 and 0096

XEP-0065 说:

XEP-0065 says:

XMPP 设计用于在网络实体,并非设计用于发送二进制数据.然而,有时需要将二进制数据发送到另一个实体一个人在 XMPP 网络上发现(例如,发送文件).因此,拥有一个用于流媒体的通用协议是很有价值的XMPP 网络上任意两个实体之间的二进制数据.主要这种字节流技术的应用是文件传输SI File Transfer [1] 和 Jingle File Transfer [2] 中指定.但是,其他应用程序也是可能的,这就是为什么它很重要开发一种通用协议,而不是专门用于特定的应用程序,例如文件传输.

XMPP is designed for sending relatively small chunks of XML between network entities and is not designed for sending binary data. However, sometimes it is desirable to send binary data to another entity that one has discovered on the XMPP network (e.g., to send a file). Therefore it is valuable to have a generic protocol for streaming binary data between any two entities on an XMPP network. The main application for such a bytestreaming technology is file transfer as specified in SI File Transfer [1] and Jingle File Transfer [2]. However, other applications are possible, which is why it is important to develop a generic protocol rather than one that is specialized for a particular application such as file transfer.

请看加粗的那一行,如果文件传输XEP是SI File Transfer(0096)和Jingle File Transfer(0234),我很困惑,那么这个0065 XEP的目的是什么?为什么网上有人引用 sep-0065 进行文件传输?

Please see the line in bold, its confusing me if file transfer XEPs are SI File Transfer(0096) and Jingle File Transfer(0234), then what is the purpose of this 0065 XEP? why people on net referring sep-0065 for file transfer?

推荐答案

XEP-0065 用于代理文件传输:除非您使用公共代理,否则您的基础架构中将需要此类代理.

XEP-0065 is for proxied file transfers: you will need such a proxy in your infrastructure, unless you use a public one.

XEP-0096 要复杂得多,我不建议一开始就使用它,但如果您以后广泛使用大型二进制传输/交换,我会推荐它,因为 Jingle 至少用于 VoIP.

XEP-0096 is much more complex, I wouldn't recommend that for a start, although I would recommend it if you later extensively use large binary transfers/exchanges, as Jingle is used for VoIP at least.

这篇关于关于 XMPP xep-0065 和 xep-0096 的混淆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆