p2p

Proper way to implement a Direct Connect client in Twisted?

旧街凉风 提交于 2020-01-11 03:40:16
问题 I'm working on writing a Python client for Direct Connect P2P networks. Essentially, it works by connecting to a central server, and responding to other users who are searching for files. Occasionally, another client will ask us to connect to them, and they might begin downloading a file from us. This is a direct connection to the other client, and doesn't go through the central server. What is the best way to handle these connections to other clients? I'm currently using one Twisted reactor

Creating a torrent client in Java? [duplicate]

我只是一个虾纸丫 提交于 2020-01-11 03:40:09
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Java BitTorrent library I would like to know more about creating a torrent client in java. I ask this question here because i do not know which direction do i look into to start programming for a torrent client. I guess i would require a Socket Knowledge of the networking torrents use Could someone point me in the right direction. 回答1: The Java Socket API: http://docs.oracle.com/javase/tutorial/networking

Is it possible to connect two or more WiFi Direct groups?

一世执手 提交于 2020-01-11 03:32:11
问题 I am currently experimenting with WiFi-Direct (WiFiP2p) for a project I'm working on and wanted to know if one can create bridge between groups, thus joining them together? Based upon the white paper released by the WiFi Alliance, it should be possible (though "The P2P Specification does not describe the mechanism for this capability – implementation is specific to the vendor"). I have looked through the internet and have found some answers (this, this, etc.) but I feel that none are

Is there a clearly documented consensus in plain English that describes Maymounkov and Mazieres Kademlia system?

只谈情不闲聊 提交于 2020-01-09 03:52:04
问题 I am struggling with the original paper trying to understand seemingly contradicting paragraphs. One example is where in 2.2 the authors declare that for bit space 160 there will be 160 k buckets, then later go on to say that in fact the buckets are a smaller number covering wider bit ranges and organized by prefix binary trees. In that 2.4 section they talk about unbalanced trees that lead to interpretations like the following, https://stackoverflow.com/a/32187456/442396 , where it is not

Peer-to-Peer between desktop and mobile app

不羁岁月 提交于 2020-01-06 15:21:13
问题 Starting to build an app where we will have a desktop and a mobile client applications. These two apps will exchange messages/info on frequent basis. The idea is not to have any server/central entity for this communication. We want to send/receive messages without any server implementation. I googled on these and got peerjs.com, openpeer.org and google project apprtc. Peerjs and apprtc are kind of web based applications which are not in our kind of. But still it's not very clear on how this

“Symmetry Procedure” in NFC P2P LLCP

拥有回忆 提交于 2020-01-06 04:28:32
问题 I'm about to implement the LLCP / SNEP protocol based on a PN532 NFC chip from NXP (purely for learning reasons) and i'm currently studying the LLCP specification of the NFC Forum. I'm pretty familiar with the MAC-layer of NFC as specified in ISO 18092, but i have some problems understanding how the "asynchronous balanced mode (ABM)" of LLCP works. To my understanding, the ABM enables the Initiator and the Target a possibility to send data at any time (on top of the actual master / slave

Video chat application using socket over public Internet

这一生的挚爱 提交于 2020-01-06 03:03:32
问题 I am developing a Java Video chat application. I use Java socket to communicate. But it seems I have to set up the exact IP and Port to connect a socket server. My design is: Both client register report its ip to server and then server exchange their information. Choose one client(A) to be the video chat socket server and report its ip and port to server. Server will tell another client(B) his video chat server ip and port. Client B register itself to Client A. Now A and B can communicate

How to Broadcast message from Group Owner to all or particular client(s) ? Android Wi-Fi Direct

会有一股神秘感。 提交于 2020-01-05 04:19:08
问题 I am developing demo to send and receive data through WIFI DIRECT . It works fine multiple clients are connecting to the owner and all clients can send data and also Group owner receives those all data from clients. I have used wifi direct demo of google. But the problem is, I am not getting how to send data from Group owner to all or particular client(s). I tried to do this after storing client's IP but it is not working. I am searching for this since last two days but haven't got proper

How does the bitcoin client determine the first IP address to connect?

爱⌒轻易说出口 提交于 2020-01-02 05:23:06
问题 In my knowledge, bitcoin is a p2p protocol and a p2p protocol must have a dedicated central server. But it is said that bitcoin is decentralized . 回答1: Back in 2009 we relied on IRC to bootstrap the network, so every node would connect to Freenode (later LFnet) and would join a channel. Their nicknames were their encoded public IP address. Nowadays the Bitcoin Core client, and many other implementations, rely on DNS seeds. DNS seeds are special DNS servers that are configured to return a

Flash Sockets, Peer-to-Peer Capabilities

◇◆丶佛笑我妖孽 提交于 2020-01-01 19:39:47
问题 Quick Intro: We have a flash tetris game finished and we are looking to add multiplayer functionality to the game. After a few days of research on the capabilities of flash and sockets, I've gotten even more confused. A quick disclaimer, I am new to sockets/networking in general. From what I gathered online, general flash tcp sockets cannot handle peer to peer connections due to the policy system in place. In order for flash to do p2p, one must use a RTMFP-capable server (such as flash media