p2p

How to parse Ip and port from http tracker response

家住魔仙堡 提交于 2019-12-24 03:07:25
问题 I am sending a request to a tracker and get a response d8:completei2e10:downloadedi1e10:incompletei1e8:intervali1971e12:min intervali985e5:peers18:\235'\027\253\000\000\331e57\374-\033"\022,\270\302e How to get Peers list or peer IP and port from this response 回答1: The response from the tracker is bencoded . Adding some whitespace for clarity: d 8:complete i2e 10:downloaded i1e 10:incomplete i1e 8:interval i1971e 12:min interval i985e 5:peers 18:\235'\027\253\000\000\331e57\374-\033"\022,\270

What happens to data when a node dies in a DHT?

我们两清 提交于 2019-12-24 02:23:07
问题 Question Taken from here: https://groups.google.com/forum/#!topic/byu-cs-460-computer-networking/hpESI0NapmY "I was thinking about how Distributed Hash Tables store data. I understand that each node is given an identifier and that the data is then stored on the node whose identifier is the closest successor to its (the data's) hash value. I also understand that when nodes join or leave the network, the data gets transferred to reflect the new set of nodes present in the network. What I don't

Communicating between two smartphones without using a Cellular Tower - Peer to Peer

最后都变了- 提交于 2019-12-23 18:48:07
问题 Lets say I have 2 mobile phones which are 50 meters away from each other and I would like to send a very small packet of data from mobile-A to mobile-B, without using any communication to cellular tower. To make it simpler, I would like to build an app which implements a Peer to Peer connection for 2 mobiles in the same radius (in the same area). Is this feasible using the technology of smartphones these days? (Android for example) 回答1: No. The radio services the mobile networks are licensed

Resumable and partial download with PHP curl or similar?

空扰寡人 提交于 2019-12-23 16:21:15
问题 Is is possible to resume downloading a partially downloaded file with curl or similar? I mean, let's say we have this big dbdump.sql file on a http or ftp server which is 1 GB in size; could I somehow tell this server please send from the file from byte x to byte y ? For simplicity's sake, what I'm looking for, with this question, does not include joining the downloaded chunks; rather just downloading the chunks and saving each as a septate file. 回答1: You can do something like: curl_setopt (

P2P in Flash / Flex without using Adobe Stratus

点点圈 提交于 2019-12-23 05:19:31
问题 Flash 10+ allows peer to peer capabilities to be implemented in Flex and Flash applications. However Adobe has sought to "control" this feature by ensuring that P2P can only be achieved using their hosted beta service called Stratus. This is to the best of my knowledge. Is there any alternate method to achieve the same? FYI: What Adobe Stratus does is it issues an encrypted 256 bit nearId to each client on NetConnection, and clients need to know each other's nearId's to connect using

Peer-to-Peer application using java

一笑奈何 提交于 2019-12-23 04:53:50
问题 I want to develop a p2p app using java and netbeans IDE. In my app i want to make two things file sharing between users Chat between users I have read from different resources Introduction to the Peer-to-Peer Sockets Project Peer-to-Peer File Sharing Problem is how i am able to connect two or more pcs connected to different networks. Showing all connected peers, file sharing of any type under a size limit. Any help will be appreciated. 回答1: These questions are dealing with the most well known

How to find devices via Wi-fi peer 2 peer, that have the same app installed?

倖福魔咒の 提交于 2019-12-23 04:24:10
问题 I am quite new in the Android development. I have an app that tries to connect to other devices running android via Wi-Fi peer 2 peer. What I want to do is to see only the devices that have the same app installed rather than see all the available peers. Thanks in advance. 回答1: Yeah you can do this!! :) Try using the Wifi P2p for Service Discovery. Actually, the link is a training which teaches exactly what you want. So, what you basically want to do is create a WifiP2pDnsSdServiceInfo object

android wifi direct live camera video stream

半腔热情 提交于 2019-12-23 04:14:17
问题 I have established a wifi direct p2p connection between two android devices, streaming the live camera feed from device A to device B, at 720x480 resolution. It works ok, but is pretty choppy, even at close range (<1m). Sometimes it's ~15fps, then for a couple seconds it will drop to ~3fps (just a guesstimate). The basic functionality is a Runnable thread inside the OnPreviewFrame of the PreviewCallback that uses YuvImage() to compress the preview frame into a JPEG and writes it to an

Security & TLS handshake when client is authenticated

廉价感情. 提交于 2019-12-22 18:45:21
问题 In a TLS handshake configured with a client authentication, there is a step where the server receives the client's certificate and choose to trust it or not (for instance, in Java it is done via a TrustManager). I would like to know if the eventual "trust failure" message from the server is sent before or after the server made sure that the client really own that public key (for example, by receiving first some messages from the handshake encoded with the client's private key). The purpose of

C# P2P chat application design

痴心易碎 提交于 2019-12-22 10:48:12
问题 I want to create a simple chat application that doesn't use an explicit server. The main requirement is that the user can simultaneously chat with many friends (just like on Skype etc.). I do not mean a conference chat here, just multiple separate chat-windows. Currently, I want only a LAN messaging application but I'd appreciate, if the design was easy to extend to Internet connections. I wonder what design is appropriate for such an application. What do you think about a solution, where