p2p

P2P message sending using NAT punch-through in Android

心不动则不痛 提交于 2019-12-22 09:47:41
问题 I try to send a message from one phone to another using Kryonet (that uses socket communication) and I intend to use NAT punch-through by storing the public address of the clients. The following code is used: public class MainActivity extends Activity implements View.OnClickListener { /** * Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button button = ((Button)

BitTorrent Client : Getting Peer List From Trackers [Python]

岁酱吖の 提交于 2019-12-21 05:06:45
问题 I am trying to get the peer list from the trackers using https://wiki.theory.org/BitTorrent_Tracker_Protocol But most of the torrent files available on the net use a udp tracker. The above website is for HTTP trackers. The torrent files with HTTP based trackers give an error.( Passkey error , or hash error or user error or 404 not found response ) Right now my request code for all HTTP trackers look like : payload = urllib.urlencode(payload) for ann in self.torrent.announce_list: if("udp" not

Can we send data from an android device to another android device directly (p2p) without server in the middle?

人盡茶涼 提交于 2019-12-20 20:37:54
问题 I need to send data from one android device to another android device directly(p2p) after they find each other through a server. I read some stuff that this can't be done but I don't understand why a device that can access the internet (it has an IP right?) can not create a peer to peer connection? If this is not possible why? and if it is how? P.S : I know without internet we cannot achieve that,the question presumes that both targets have internet connection, either gprs/3g/4g or wifi

Working Hello World WebRTC DataChannel Examples with Signaling Implemented

送分小仙女□ 提交于 2019-12-20 19:41:56
问题 The intent is for this to become a Community Wiki post that is kept up-to-date so developers interested in implementing communication of JSON messages browser-to-browser (p2p) with WebRTC DataChannels have simple yet functional examples. WebRTC DataChannels are experimental and still in draft. It seems that currently the web is a minefield of outdated WebRTC examples and even more so if a developer is trying to learn the RTCDataChannel API. Simple yet functional 1-page examples that work

Why has JXTA been abandoned? Any alternatives out there?

99封情书 提交于 2019-12-20 18:03:26
问题 P2p/Grid Computing seem like a promising concepts. JXTA looks like the only all in one framework for it. Is there a reason this field is so sparsely pursued? 回答1: I have lead the release of JXTA 2.6 and 2.7 - JXTA is not completely abandoned. Some people have posted patches on the 2.6 branch and it could easily be merged with the 2.7 branch. There are many reasons why people did not carry on participating to JXTA: Oracle did not follow-up on their duties regarding project governance, which

WebRTC: Matching up nearest peers

左心房为你撑大大i 提交于 2019-12-20 11:22:15
问题 Given a single public IP address (peer A) and a list of many other public IP addresses (a mix of IPv4 and IPv6 addresses), what is the easiest way to match up peer A the IP addresses of the n nearest peers without having the peers manually ping each other for latency benchmarking? I think that this is possible using BGP with a bunch of complicated queries (and maybe something involving OSPF), but I was hoping that there might be a solution or library that would make it as easy as the

Automatic authentication for Android WiFi Direct

最后都变了- 提交于 2019-12-20 08:38:58
问题 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

How to implement P2P in C#?

时间秒杀一切 提交于 2019-12-18 13:37:57
问题 Recently, I would like to develop a simple chat program using c# and Winform,Main feature is chat and file transfer ,But i can't found example about implement p2p using dotnet,Who can help me? 回答1: Check out WCF 回答2: Do you want to implement p2p functionality or a specific p2p protocol? For generic p2p functionality, or any kind of communication functionality, you should probably use WCF. For specific p2p protocols, like direct connect, BitTorrent and the like you need to decide first which

How to implement P2P in C#?

两盒软妹~` 提交于 2019-12-18 13:37:05
问题 Recently, I would like to develop a simple chat program using c# and Winform,Main feature is chat and file transfer ,But i can't found example about implement p2p using dotnet,Who can help me? 回答1: Check out WCF 回答2: Do you want to implement p2p functionality or a specific p2p protocol? For generic p2p functionality, or any kind of communication functionality, you should probably use WCF. For specific p2p protocols, like direct connect, BitTorrent and the like you need to decide first which

How does peer2peer work through a router?

你说的曾经没有我的故事 提交于 2019-12-18 12:37:47
问题 How does one PC connect to another over the internet to another PC? An example would be a program listening for connections on PC 1. PC 1 sits behind Router 1. PC 2 has a client program trying to connect to PC 1. What is the correct technology/technique to use as the listening program in this situation? 回答1: This article by Brian Ford explains how peer to peer communication across NATs work. Most routers also expose a Universal Plug and Play interface (uPnP) which can be used for port