p2p

distance between android and iphone

巧了我就是萌 提交于 2019-11-29 22:32:36
问题 I am looking for a way to transmit data when two phones are close by. This needs to be cross platform so I cannot use NFC or iBeacon. I plan on using allJoyn to send information. I would only like to send data to others that are within a few feet of me. Is there any way that I could get an accurate reading of distance on other phones? Or can I get an accurate distance on a master device that could be placed in the room? 回答1: Shot in the dark answer: If both devices are on the same wireless

Use node.js as a WebRTC peer?

爱⌒轻易说出口 提交于 2019-11-29 21:06:22
What modules are in existence to use node.js as a peer in WebRTC? I'd like to use WebRTC in a more client/server fashion than P2P for its apparent ability to send packets unreliably. (AKA, I don't want the huge delay TCP makes by guaranteeing packet arrival with data in order) If I have to use a stripped-down browser page as a server, that would perhaps work... however, it would really be sub-optimal. Node.js would make things much smoother, and probably more reliable too. Thanks! Have a look at the Erizo component of Licode (WebRTC MCU). It has a stream controller and webrtc controller

Peer-to-Peer video from iOS to Android?

六眼飞鱼酱① 提交于 2019-11-29 19:14:14
问题 I'm start to develop/prototype a Peer-to-Peer video chat application for iOS and Android. I'm trying to create a similar experience to FaceTime or Tango -- ie good quality video, works across the internet/3G (not just on the same LAN). I'm just getting started in the research phase. I've done a bunch of Googling, but haven't found much (since this is a new area for me, I'm probably looking in the wrong places). Can you suggest any pit falls that I should expect to run into? What protocols

How to write a simple Bittorrent application?

送分小仙女□ 提交于 2019-11-29 18:43:55
How to write a simple bittorrent application. Something like a "hello world" using a bittorrent library, I mean a simplest of the application to understand the working of bittorrent. I would prefer a python or a C/C++ implementation, but it can be any language. Platform is not an issues either, but i would prefer Linux. Recommendations for the library to follow, I have downloaded the source code for one (i think official bittorrent) from - http://sourceforge.net/projects/bittorrent/develop . But, I see a lot of other libraries at http://en.wikipedia.org/wiki/Comparison_of_BitTorrent_clients

CUDA Peer-to-Peer across I/O hubs

核能气质少年 提交于 2019-11-29 15:53:29
Is there an SBIOS entry or other configuration change that will enable peer-to-peer to work for CUDA across the QPI links that connect I/O hubs (or sockets, in the case of CPUs that integrate the I/O hub - Sandy Bridge and higher)? No. The QPI link has a protocol which does not entirely cover all features of the PCIE protocol, and in particular some features used by the P2P protocol. A specific difference is documented in an intel datasheet here . “The IOH does not support non-contiguous byte enables from PCI Express for remote peer-to-peer MMIO transactions. This is an additional restriction

TCP P2P without server

自古美人都是妖i 提交于 2019-11-29 15:43:06
问题 is it possible to write TCP P2P program without server? When I was googling this question I found something about NAT traversal,UPnP, can I use them somehow? 回答1: Yes you can (where as GrandmasterB points out, each peer has both server and client sockets). However, NATs will cause you pain, as you may already know. If you can't use middleboxes (servers on public IP addresses to which your clients connect (*)) - and you might not want these, because they're rather contrary to the point of P2P

Is it possible to create peer-to-peer connections in a web browser?

不想你离开。 提交于 2019-11-29 14:57:21
I am aware that an early draft of HTML5 specified peer-to-peer connections using the PeerToPeerConnection() constructor. However, this was replaced by WebSocket which, to my knowledge, does not support peer-to-peer connections. In addition, the device element specifies a peer-to-peer connection interface , however no web browsers have implemented it yet. Opera Unite allows Peer to peer (basically gives your browser web server, file system and nat-traversal capabilities), but this is Opera only. It's not exactly P2P, but you can use proxy server using push mechanism http://en.wikipedia.org/wiki

How to connect to an open tcp port on client machine from an unknown server?

大憨熊 提交于 2019-11-29 11:43:23
I have been reading a lot about different NAT traversal techniques, but I am still a little unclear about how it works. If I open a TCP port on a client machine and send a request to some arbitrary nonexistent server (which won't respond), my client NAT will now have an open channel, correct? Can I then use another (unknown) computer at a different IP address to access that client port if I know both the public and private IP of the client as well as the port number? Or will my NAT check where my server packet is coming from and block it since it is not from the same IP address as the original

c#仿照类似qq的通信聊天程序

江枫思渺然 提交于 2019-11-29 03:50:55
即时通信系统开发 在我们的生活中经常使用即时通信的软件,我们经常接触到的有:QQ、阿里旺旺、MSN等等。这些都是属于即时通信(Instant Messenger,IM)软件,IM是指所有能够即时发送和接收互联网消息的软件。 在前面专题P2P编程中介绍过P2P系统分两种类型——单纯型P2P和混合型P2P(QQ就是属于混合型的应用),混合型P2P系统中的服务器(也叫索引服务器)起到协调的作用。在文件共享类应用中,如果采用混合型P2P技术的话,索引服务器就保存着文件信息,这样就可能会造成版权的问题,然而在即时通信类的软件中, 因为客户端传递的都是简单的聊天文本而不是网络媒体资源,这样就不存在版权问题了,在这种情况下,就可以采用混合型P2P技术来实现我们的即时通信软件。前面已经讲了,腾讯的QQ就是属于混合型P2P的软件。 因此本专题要实现一个类似QQ的聊天程序,其中用到的P2P技术是属于混合型P2P,而不是前一专题中的采用的单纯型P2P技术,同时本程序的实现也会用到TCP、UDP编程技术。具体的相关内容大家可以查看本系列的相关专题的。 二、程序实现的详细设计 本程序采用P2P方式,各个客户端之间直接发消息进行聊天,服务器在其中只是起到协调的作用,下面先理清下程序的流程: 2.1 程序流程设计 当一个新用户通过客户端登陆系统后,从服务器获取当在线的用户信息列表

Bluetooth peer to peer networking APIs iOS [closed]

旧巷老猫 提交于 2019-11-29 03:17:45
问题 G'Day programmers...I am planning to make an application which will be using peer to peer bluetooth connection between two different iOS device. So my question is, is there any good tutorials which can guide me through? Purpose is to send a stream of strings, like in chat application. I want to learn so you may give me a direction something like, "Hey check this, XYZ API they intent to do what you are looking for..." Or "There is a tutorial ..." Thank you for any kind of help! Research So far