p2p

Communication between two computers without opening ports, using a third computer to set up the connection

自作多情 提交于 2019-12-02 21:30:12
Let's say I have a server, and two clients connected to it. (via TCP, but it doesn't matter) My goal is to allow a direct connection between those two clients. This is to allow direct voice contact between two players, for example, or any other client plugin they may have installed which don't need server interaction (like playing some kind of random game between the two). The server can be there to help setting up the connection. From duskwuff's answer, I got several leads: http://en.wikipedia.org/wiki/STUN which describes an algorithm to do that, and http://en.wikipedia.org/wiki/UDP_hole

Adding new nodes to Kademlia, building Kademlia routing tables

纵然是瞬间 提交于 2019-12-02 21:20:42
I can't quite wrap my brain around the joining process of Kademlia DHTs. I've seen a few tutorials and presentations online, but they all seem to say things the same way and all psedo code etc is the same in most (actual copy/paste). Can somebody give a high level walk through on this? Joshua Kissoon I'm assuming you've read the Kademlia paper . Here's an excerpt from my article An Introduction to Kademlia DHT & How It Works Some background information: When you have a Kademlia network running, there should always be a node that every other node knows about in order for them to join the

Direct P2P connection

萝らか妹 提交于 2019-12-02 19:50:25
This topic resembles this thread I'm rather new to the topic of network programming, never having done anything but basic TCP/UDP on a single local machine. Now I'm developing an application that will need P2P network support. More specifically I will need the application to connnect and communicate across the internet preferably without the use of a server to do the matchmaking between the clients. I'm aware and assuming that almost all users are behind a router which complicates the process since neither clients will be able to initialize a direct connection to the other. I know UPnP is an

How to transfer “data” between two device (android,iphone)?

孤街浪徒 提交于 2019-12-02 19:37:46
How can i transfer data between two device? I would like to transfer data (mostly image file) between different platforms (android,iphone). Is it possible to use p2p or should i use client-server? Any help will be appreciated. While p2p is possible in some cases, you will achieve the most widespread compatibility with a client-server architecture, at the cost of having to deploy, power, connect, and maintain servers. You will be able to use both wifi access points and mobile (3g, etc) networks You have a ready place in the system to measure (or restrict) usage and/or insert ads You don't have

【计算机】【新兴技术】【区块链技术】区块链技术简介

陌路散爱 提交于 2019-12-02 19:31:53
1、区块链所在的“家族”:    核心点:互联网+去中心化: 去中心化:Decentralization 边缘计算:     即 三者联盟:      P2P 下载:【共享用户磁盘】 + CDN :【共享用户宽带】 + 分布式计算:【共享CPU资源】   P2P 下载:【共享用户磁盘】     1999年,Shawn Fanning创立了一个叫Napster的mp3音乐分享网站,他也是Facebook最早的顾问、投资人和股东之一。       Napster本身并不拥有MP3,它可以找到一首歌曲所在各个用户的磁盘上,然后需要这个歌曲资源的用户从各个其他用户磁盘上下载。       P2P下载对版权保护的冲击很大,美国后来禁止用这种方式来分享MP3,Napster也于2002年宣告破产。      P2P的本质,是一种硬盘的共享,是把每个人电脑上的一部分硬盘,拿出来与其他人共享。   CDN :【共享用户宽带】     不同地区访问相同的资源(如视频等占用较大带宽的资源),路径不同,访问速率也不同;     为解决这个问题,分别在几个地区放置相同资源,通过CDN技术,用户可以访问与其最近的资源。      即:分布式的存储,共享分布式的带宽     进化版:P-CDN       将每个用户的电脑都变成CDN       迅雷出的一款产品赚钱宝,后来叫玩客币,使用的就是P-CDN;

Python Library/Framework for writing P2P applications [closed]

老子叫甜甜 提交于 2019-12-02 18:26:37
Is there any library or framework for writing P2P applications in Python ? I know the initial Bittorrent client was written in Python. I'm looking something like JXTA but for Python. Twisted is pretty much the answer to anything seriously network-related in Python, but you really have to buy into the Twisted way of doing things. It's not intrinsically a P2P stack, it's an event loop, callback system and networking framework. Divmod Vertex is not currently being maintained, and was still pretty rough when I tried using it a few years ago. CSpace might be the closest to what you're looking for:

Could Node.js run client side in Chrome with its native client (to be released soon)

爱⌒轻易说出口 提交于 2019-12-02 17:44:03
Google Chrome's native client is soon to be released. http://blog.chromium.org/2011/02/native-client-getting-ready-for-takeoff.html Would this allow node.js to be run within the browser enabling distributed applications to communicate with each other without having to go through the server? node.js is not pure Javascript code. There are parts of it written in C++ so this is unlikely. There are a couple of possibilities for distributed communication. One is to use the Websockets api in the browser to communicate with other browsers. The other one is to run node.js as a separate server process

how do i make my own P2P software? [closed]

我与影子孤独终老i 提交于 2019-12-02 17:12:50
how can i make my own napster ? which library are these p2p programs using ? i am not too familiar with the concept of socket programming. could you make p2p program using Qt4 ? i've been wondering about this question since the Napster days. how would you also go about creating the next "bitorrent" ? is this by using similar socket libraries ? what's the latest in p2p technology ? are there any news sites? what's the future hold for p2p ? thecoshman P2P or Peer-to-Peer is a very hard type of program to create, mostly because of its very structure. Most internet applications are Client-Server

Override setTimeout behaviour for inactive tabs

不问归期 提交于 2019-12-02 16:41:28
问题 I am currently developing a peer to peer game in JavaScript using WebRTC. It treats one of the peers (i.e. the host) as the server and any other peers who join connect to the host through a node.js brokering server. I am currently trying to solve an issue where the game stops updating for everyone if the host switches tabs such that the game is no longer the active tab. After doing some research, I discovered that this is because I'm using something like: setTimeout(callback, 1000 / 60); in

Automatic authentication for Android WiFi Direct

风格不统一 提交于 2019-12-02 16:22:10
In Android ICS, Wireless P2P (WiFi Direct) API is provided. I tried to develop an Application which can connect 2 phones via Wireless P2P automatically if the MAC address match. From SDK documentation, I have to following steps: Turn on WiFi Direct from Setting. Initialize P2P connection. - initialize() Discover Peer. - discoverPeers() See if the MAC address matched. Connect to the discovered Peer. - connect() Once, the connect() API is called, Farside phone will Pop Up a connection Authentication Dialog. (Depending on WifiP2pConfig) Is there anyway to connect automatically, without having