使用P2P网络浏览器 [英] P2P using web browser

查看:93
本文介绍了使用P2P网络浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经被告知,一些BT网站一样BITLET或MININOVA允许你从其他用户,显然,其他用户下载,而你有你的浏览器中打开从你下载。

I've been told that some torrent sites like BITLET or MININOVA allow you to download from other users, and obviously other users to download from you while you have your browser open.

我想创建类似的游戏,在这里:
 1.用户A和B被连接到一个特定的网站
 2.用户A知道B的IP和端口
 3.用户A下载开始从用户B的一些信息

I would like to create something similar for a game, where: 1. User A and B are connected to a specific website 2. User A knows the IP and port of B 3. User A starts downloading some information from user B

任何人都可以给我一些提示或关键字开始?

Could anyone give me some tips or keywords to start?

谢谢!

推荐答案

您的游戏都必须写为浏览器插件,因为浏览器不支持这种东西。它看起来像BITLET使用Java,这会工作,或FLASH 10还支持socket连接,这样将是另一种选择。你可能会希望有一个中央服务器来跟踪哪些不同的对等可供选择。每个客户端可以连接到服务器,获取客户端列表,然后创建TCP套接字连接到它想连接到每个客户端。然后,每个客户端还可以告诉对方有关其他客户,等等。

Your game would have to be written as a browser plugin since browsers don't support this kind of thing. It looks like BITLET uses java, which would work, or FLASH 10 also supports socket connections so that would be another alternative. You'd probably want to have a central server to keep track of what different peers are available. Each client could connect to the server, get a list of clients, then create tcp socket connections to each client it wants to connect to. Each client could then additionally tell each other about other clients, and so on.

这篇关于使用P2P网络浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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