p2p

Java: Using server to create P2P between two clients

Deadly 提交于 2019-12-08 06:29:53
问题 I am experimenting with a file transfer program in Java and I wanted to create a server that would handle creating P2P connection between two clients. Don't know how that should work, exchanging sockets? I don't want to exchange IP address... Seen some questions similar (ev. Connecting two clients via server java) but I have no idea how to achieve that. Thanks for your time 回答1: It sounds like you are looking for nat traversal techniques. There is no single solution because there are many

Simple-peer, Socket.IO, Laravel 5.3

旧城冷巷雨未停 提交于 2019-12-08 04:16:05
问题 I'm trying to create a video conferencing system using Laravel 5.3, Socket.IO and Simple-Peer. I followed this tutorial : https://www.youtube.com/watch?v=ieBtXwHvoNk and everything worked, but now I want to automatize this. I want that when two users go to this kind of link : /vide-conference/some_video_conference_id, they get connected, so the video conference can begin. As far as I know, if I want a peer to send data to another one before they are connected, I need a signaling server. I'll

iPhone - how is data transferred in P2P

只谈情不闲聊 提交于 2019-12-08 03:52:37
问题 I am trying to implement a P2P application. What I try to do is transfer a custom NSObject class's data between the devices. I am not able to figure out when the "receivedData" method is invoked by GKSession. Here's what I've done The usual connection and showing a dialog box with peers When the app receives a state change for a peer and the state is Connected, I am sending the data to all peers (ideally this should be called when each peer accepts the connection) using NSCoding methods In

P2P using web browser

怎甘沉沦 提交于 2019-12-08 03:26:10
问题 I've been told that some torrent sites like BITLET or MININOVA allow you to download from other users, and obviously other users to download from you while you have your browser open. I would like to create something similar for a game, where: 1. User A and B are connected to a specific website 2. User A knows the IP and port of B 3. User A starts downloading some information from user B Could anyone give me some tips or keywords to start? Thanks! 回答1: Your game would have to be written as a

WebRTC data channel stack on readyState “conecting”

情到浓时终转凉″ 提交于 2019-12-08 02:39:42
问题 I am trying to create a webRTC connection with a datachannel (only), but when I use the code provided bellow, and run initCall() , the readyState of the data channel is stack on "connecting" and never changes. I am using the atest version of chrome. What coud be causing it? The signaling server is checkd to be working alright. var ottowa = initIO({//Init a connection to the signaling server onMessage: function(data) { //got message from the signalin server trace("onMessage with data = " +

P2P message transfer behind firewalls and NAT

血红的双手。 提交于 2019-12-08 02:13:48
问题 I have two java applications running on two different machines in two different part of the world. The machines can be behind NAT (or not!). The applications are supposed transfer some data (<500kb). We do have a server, which can do everything (like providing ip address of the peers) but the data from the applications must always be transferred peer-to-peer. The data can not be routed through the server. Do I have to deal with firewall mess? Do I have to set port forwarding? Are JXTA or

Can `dat` protocol efficiently support live streaming of video?

隐身守侯 提交于 2019-12-08 01:28:43
问题 I would like to be able to live stream video (or any other file that is large and continuously modified/appended) via dat . Here it says, The dat:// protocol doesn't support partial updates at the file-level, which means that with multiple records in a single file, every time a user adds a record, anyone who follows that user must sync and re-download the entire file. As the file continues to grow, performance will degrade. Putting each record in an individual file is much more efficient:

Developing Mobile P2P Payment Apps

∥☆過路亽.° 提交于 2019-12-07 18:55:06
问题 Main Question: If I were to start developing a mobile peer-to-peer payment app (Namely on iOS and Android), where would I start? i.e. What APIs would I use to create transactions that can occur between to peers, using debit and/or credit cards? What are the recommended languages for a backend? My take: From the research I have done, it would seem that companies like Square Cash etc. made use of the MasterCard and VISA APIs. This is possible something I would have to use. I would also make use

Decentralised user authentication — possible?

泪湿孤枕 提交于 2019-12-07 16:00:27
问题 I'm designing a fully distributed P2P messaging application. Edit: Not just any messaging application -- specifically a public forum. Messages are passed along from neighbour to neighbour, so messages may come in from a peer other than the original author. Secrecy of communication is unimportant. However, verification of the author of a message is vital. The problem needs an introduction: In client-server models, each client can be sure that messages' origins are what the message says they

Architecture used by dropbox

≡放荡痞女 提交于 2019-12-07 13:48:04
问题 I want to know whether client-server or peer-to-peer architecture is used by dropbox. Here my doubt lies: Suppose we have two systems which are synced via dropbox. System1: dropbox > Folder_A > file_1 System2: dropbox > Folder_A > file_1 Initially both are synced. Suppose now, User on System1 adds a file_2 in Folder_A. Now this file gets uploaded to dropbox server. But my question is how does server notifies System2 about file_2. I am seeing Observer Pattern being used here. But Is Pull or