简体   繁体   English

从基于Web的对等客户端使用什么技术

[英]What technology to use from web based peer-to-peer client

I want to create a peer-to-peer connection between android and web client. 我想在android和web客户端之间创建对等连接。 I am still looking for a technology which will enable p2p connection. 我仍在寻找一种可以实现p2p连接的技术。 Can somebody comment on those. 有人可以对此发表评论吗? Currently I am considering the following: 目前,我正在考虑以下方面:

  • WebRTC WebRTC
  • WebSockets 的WebSockets

I want to avoid Flash, Java Applets and other plugin-based solutions. 我想避免使用Flash,Java Applets和其他基于插件的解决方案。

Peer to peer term can be very misleading. 点对点术语可能会产生误导。 If by Peer to Peer you mean a connection inside a p2p formed network, you should consider implementing protocols like JXTA. 如果“对等网络”是指p2p形成的网络内部的连接,则应考虑实现JXTA之类的协议。

If you mean just a connection between a web browser and Android system. 如果只是说Web浏览器和Android系统之间的连接。 You can implement it using Java Script AJAX (for UI update and Data Transfer) and A small server on android app. 您可以使用Java Script AJAX(用于UI更新和数据传输)和android应用上的小型服务器来实现它。

You should also consider your connectivity scope. 您还应该考虑您的连接范围。 Do you want it to be available in whole internet or just local network. 您希望它在整个Internet还是仅在本地网络中可用。 In former case you need a centralized server with a Valid IP or using more sophisticated Peer to Peer protocols. 在前一种情况下,您需要具有有效IP或使用更复杂的点对点协议的集中式服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM