安卓/ iOS的的对等架构 [英] Android/iOS Peer-To-Peer architecture

查看:306
本文介绍了安卓/ iOS的的对等架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一种广泛的问题,我发现有关此主题的许多信息。

This is kind of wide question, I found many information about this topic.

可能的技术

  • 蓝牙
    • Bluetooth
      • GameKit iOS only?
      • Bluetooth P2P library, with Wi-Fi and GPS?
      • 无线直?
      • 的Bonjour零配置?

      这些都不当前确实有一个完全实现的对等库,或者我还没有发现这样的。照片 其实我不感兴趣的任何类型的游戏库(我不达标等问题)

      Neither of these does currently have a fully-implemented peer-to-peer library, or I haven't found such.
      In fact I'm not interested in any kind of gaming library (and I don't target such issues)

      问题我会考虑的。

      • 点对点的机器人连接
        • 在Android的API,因为14和跨平台使用不支持
        • ANI(<一href="https://github.com/pocmo/Android-Network-Intents">https://github.com/pocmo/Android-Network-Intents)只有网络截获
        • 拨盘,MOVL只有Wi-Fi无线
        • ANI (https://github.com/pocmo/Android-Network-Intents) only network intercepted
        • DIAL,MOVL only wi-fi
        • 在C2DM / GCM需要移动数据
        • 直接无线上网的唯一
        • 在需要网络数据和服务器
        • 的GameKit是只兼容其他的GameKit
        • 蓝牙不能很好地支持,并需要生根的设备。

        我想尽可能多的设备尽可能之间的通信效率,无需使用移动数据(3G,HS * PA,LTE)或WiFi AP作为中间点。
        而不是人们连接长距离,真的就像一个PAN蓝牙。

        I'd like to efficiently communicate between as many devices as possible, without need of using mobile data (3G,HS*PA,LTE) or WIFI AP as intermediate point.
        And not connecting people over large distances, really just like a PAN over Bluetooth.

        因此​​,什么功能我需要有

        Thus, what features I'd require to have

        • 完全脱机(不需要任何移动数据业务或WiFi AP)
        • 跨平台兼容性(安卓,IOS)
        • 在手机操作系统向后兼容(的Andr​​oid 2.3以来,由于iOS的5.1.1)

        特点我想有

        • 在路由优化(OSPF,MME,...)
        • 在不需要的设备授权网络(见的Andr​​oid <一href="http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#createInsecureRfcommSocketToServiceRecord%28java.util.UUID%29">insecure BT RFCOMM )
        • 在可能的包裹起来,几十用户(20-30最大海事组织,或更多,如果可能的话)
        • 如果需要,网络可能可能选择自己的领袖(服务器节点)?
        • Route optimization (OSPF, MME, ...)
        • Not requiring devices to authorize to network (see Android insecure BT RFCOMM)
        • Possible wrapping up-to tens of users (20-30 max imo, or more if possible)
        • If needed, network could possibly choose its own leader (server node) ?

        有没有什么目前我可以使用提到的功能?

        Is there currently anything I could use for mentioned features?

        推荐答案

        开园正在开发这种技术,并在他们的应用程序,Firechat实现它。测试应用程序,我们发现,Android系统对Android的连接只能通过蓝牙,iPhone到iPhone曾与蓝牙或WiFi的工作,和Android对iPhone只有当手机连接到同一个网络的工作原理。 这里有一个链接到他们的sdk应该是出soonish: https://opengarden.com/sdk

        Open Garden is developing this sort of technology and implement it in their app, Firechat. Testing the app, we found that Android-to-Android connections worked only over Bluetooth, iPhone-to-iPhone worked with bluetooth or wifi, and Android-to-iPhone only works if the phones are connected to the same network. Here's a link to their sdk which should be out soonish: https://opengarden.com/sdk

        这篇关于安卓/ iOS的的对等架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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