p2p

Is there a framework/app for testing distributed systems or just network apps?

陌路散爱 提交于 2019-12-12 03:24:52
问题 I want to simulate at least 9 clients to test my p2p engine. And i want to make some of them to be behind NAT and some of them to have all ports unlocked. Also, i would like to see log which creates each of them. I am not capable of running 9VM simultaneously, so I'm here to ask experts: is there something i can use for testing it? I am using Boost library in my app. 回答1: I think that's the perfect solution for linux users: http://www.nrl.navy.mil/itd/ncs/products/core I will keep this answer

webRTC error undefined configuration

核能气质少年 提交于 2019-12-12 00:35:49
问题 I have the following in my client.js file... window.onload = function() { var peerConnection; var peerConnectionConfig = { 'iceServers': [{ 'url': 'stun:stun.services.mozilla.com' }, { 'url': 'stun:stun.l.google.com:19302' }] }; navigator.getUserMedia = navigator.getUserMedia || navigator.mozGetUserMedia || navigator.webkitGetUserMedia; window.RTCPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection; window.RTCIceCandidate = window

Creating P2P Connections with Wi-Fi on Android

放肆的年华 提交于 2019-12-11 22:36:57
问题 So I'm trying to create p2p connection work on android. And I am stuck on following part. code below is what's provided on API and it does not make sense to me. I feel like there must be a type for a mManager and the type is not given. How do I make this Work? Link to API: http://developer.android.com/training/connect-devices-wirelessly/wifi-direct.html @Override Channel mChannel; public void onCreate(Bundle savedInstanceState) { .... mManager = (WifiP2pManager) getSystemService(Context.WIFI

Need clarification in documentation of Hyperledger Sawtooth Architecture Guide : Validator Peer to Peer (P2P) Network

安稳与你 提交于 2019-12-11 15:56:07
问题 I would like to understand the below statementS from this documentation. Part 1: The network component continues to perform a peer search if its number of peers is less than the minimum connectivity. The network component rejects peering attempts if its number of peers is equal to or greater than the maximum connectivity. Part 2: Even if maximum peer connections is reached, a network service should still accept and respond to a reasonable number of connections (for the purposes of other node

How to represent Kademlia distance metric as integer

安稳与你 提交于 2019-12-11 12:58:09
问题 I'm new in P2P networking and currently I try to understand some basic things specified by Kademlia papers. The main thing that I cannot understand is Kademlia distance metric. All papers define the distance as XOR of two IDs. The ID size is 160 bits, so the result is also has 160 bits. The question: what is a convenient way to represent this distance as integer? Some implementations, that I checked, use the following: distance = 160 - prefix length (where prefix length is number of leading

Which DHT implementations are compatible with Python 3.x?

主宰稳场 提交于 2019-12-11 09:52:24
问题 Following on from this question about DHTs in Python, my question is the same except that I'm developing on Python 3.x - I only want to know about implementations of the DHT concept which are known to work with Python 3. There seem to be plenty of DHT products, for example Khashmir, however as far as I'm aware nobody has bothered to make these available to Python 3.x. 回答1: I don't think you'll get simultaneous 2.6 and 3.x support - that is not what Guido is recommending. To do that they'd

What TCP protocols are usable for client to client communication?

元气小坏坏 提交于 2019-12-11 08:30:40
问题 Manytimes clients ask for features like instant messaging (IM) and other client-to-client (P2P) communication for their web apps. Typically how is this done in normal web browsers? For example I've seen demos of Google Wave (and Gmail) that are able to IM from a regular browser. Is this via HTTP? Or does XmlHttpRequest (AJAX) provide the necessary backend for such communication? More than anything I wonder how can a server "wake up" the remote client, lets say for sending an IM? Or does the

How does NAT in 3G works

柔情痞子 提交于 2019-12-11 08:03:38
问题 1) In a Android mobile, when I connect to 3G , I get a public address as 1.39.1.85 which I checked from google and the local ip for my Mobile is 10.145.15.50 which I got programatically. 2) How are these two addresses Assigned? by the BTS? NAT? 3) Is it possible for two mobile nodes can have same public IP address? 4) I know about NAT and Firewalls. I tried UDP hole punching: A) Using Mobile A, I sent a UDP packet to a UDP server java program which captures its public ip and port. b) Using

JavaME, Implementing Peer to Peer communication

随声附和 提交于 2019-12-11 05:57:31
问题 I have 4 phones connected to a Wifi access point and I know the MAC/IP of all of these including the Wifi access point. I need to implement communication between each of these phones, a sort of peer to peer communication, I was thinking about using sockets but then each phone will have to implement a ServerSocket and Socket on each of the phones is this fine? The Ip's of these phones would be in private range 192.168.... so could I use something like http://192.168.xx.xx/port and contact any

JXTA Practical jxta II examples …exception when NetManager.startNetwork(); is executed

為{幸葍}努か 提交于 2019-12-11 04:14:45
问题 I have been trying to run examples of practical jxta ii but iam getting this exception Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/netty/channel/ChannelFactory this exception is encountered when this line is executed PeerGroup TheNetPeerGroup = NetManager.startNetwork(); I have used jxse-2.6 to run the examples...i hve followed all the steps mentioned in the book... Where can i find jxse-2.7.jar file ...couldnot find it...?? I am running the examples in netbeans and i