P2P using web browser

怎甘沉沦 提交于 2019-12-08 03:26:10

问题


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.

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?

Thanks!


回答1:


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.



来源:https://stackoverflow.com/questions/5022968/p2p-using-web-browser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!