在浏览器中运行webtorrent js [英] Running webtorrent js in browser

查看:370
本文介绍了在浏览器中运行webtorrent js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,要使webtorrent在浏览器中运行,是否有必要运行webtorrent桌面服务器? Utorrent客户没有此功能吗?

So that the webtorrent works in the browser is it necessary to be running a webtorrent desktop server for example? Utorrent customers do not have this feature?

推荐答案

浏览器中的Webtorrent只能通过WebRTC与其他客户端通信,即,它与真实bittorrent所使用的TCP和uTP传输以及基于UDP的DHT不兼容客户端,因此它将无法提供与桌面应用程序相同的连接性.

Webtorrent in a browser can only talk to other clients via WebRTC, i.e. it is not compatible with the TCP and uTP transports and UDP-based DHT used by real bittorrent clients, hence it will not provide the same connectivity as a desktop application.

此外,浏览器缺少许多其他系统API,因此它们无法与本机应用程序匹配.考虑到Bittorrent客户端需要管理许多大文件并执行大量IO,这是一个阻抗不匹配的问题.

Additionally browsers lack many other system APIs, so they can't match the capabilities of native applications. Considering that bittorrent clients are in the business of managing many large files and performing lots of IO that is quite an impedance mismatch.

这篇关于在浏览器中运行webtorrent js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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