将HTML5允许Web应用程序做出的对等的HTTP连接? [英] Will HTML5 allow web apps to make peer-to-peer HTTP connections?

查看:110
本文介绍了将HTML5允许Web应用程序做出的对等的HTTP连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能创建一个web应用程序,与中央服务器的帮助下,可以创建具有相同的Web应用程序的其他用户直接连接?我想象类似打洞的过程。

我读过关于HTML 5中的新的WebSockets API,但现在看来,你必须启动完全全双工连接,就可以开始前,用WS-兼容的服务器的连接。我moreso思考过程,使客户端之间的直接连接,与服务器介入的只有的初始握手。

注:Java小程序不计。我只是在标准的浏览器技术的兴趣。

解决方案

而不是智能的猜测,这里是一个明智的回答:

HTML 5计划允许点对点从JavaScript的连接,但这些连接不会被原始TCP。

完整的规范可以在 http://dev.w3.org/html5/websockets/ <被发现/ P>

JRH

编辑:具体参照点对点的连接,请查看以下链接:

  • 对于点对点的连接:<一href="http://www.w3.org/TR/2008/WD-html5-20080122/#peer-to-peer">http://www.w3.org/TR/2008/WD-html5-20080122/#peer-to-peer
  • 关于广播连接到本地网络:<一href="http://www.w3.org/TR/2008/WD-html5-20080122/#broadcast">http://www.w3.org/TR/2008/WD-html5-20080122/#broadcast
  • 关于TCP连接(在连接codeD协议):<一href="http://www.w3.org/TR/2008/WD-html5-20080122/#tcp-connections">http://www.w3.org/TR/2008/WD-html5-20080122/#tcp-connections
  • 完整提出的规范:<一href="http://www.w3.org/TR/2008/WD-html5-20080122/#network">http://www.w3.org/TR/2008/WD-html5-20080122/#network

其重要的注意,能力仍在谈判之中。这将是很好能够打造本地聊天网络应用)

JRH

Is it possible to create a web app that, with the help of a central server, could create direct connections with other users of the same web app? I'm imagining a process similar to UDP hole punching.

I've read about the new WebSockets API in HTML5, but it appears you must initiate the connection with a WS-compatible server before the fully-duplexed connection can begin. I'm thinking moreso about a process to make direct connections between clients, with a server getting involved only in the initial handshake.

NOTE: Java applets don't count. I'm interested only in standard browser technologies.

解决方案

Instead of intelligent guesses, here is an informed answer:

HTML 5 plans to allow peer to peer connections from javascript, but these connections WILL NOT BE RAW TCP.

The complete spec can be found at http://dev.w3.org/html5/websockets/

jrh

EDIT: with specific reference to peer to peer connections, check out these links:

Its important to note that the capabilities are still being negotiated. It will be nice to be able to create "local chat" web apps :)

jrh

这篇关于将HTML5允许Web应用程序做出的对等的HTTP连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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