是否有可能两款Android手机之间的沟通? [英] Is it possible to communicate between two android phones?
问题描述
我已经阅读以下问题和解答。
I already read following question and answers.
<一个href="http://stackoverflow.com/questions/9001779/how-to-communicate-between-same-application-installed-on-two-android-handset">How安装在两台Android手机相同的应用程序之间进行通信?
我觉得用例是完全和我一样。
I think the use case is totally same as mine.
但我仍然有剩下的问题 - 这是什么上面意味着两款手机之间的文章使用互联网每个远
But I still have a remaining question - what does 'using internet' in the article above mean between two phones each far away?
我想我需要详细一些更多的解释。
I think I need some more explanation in detail.
在此先感谢。
推荐答案
是的,两个应用程序可以讨论在互联网(或蓝牙或短信/彩信的这个问题,但不实用)。就像任何两个计算机可以通过因特网进行通信。有各种各样的协议。一整个世界真的。你需要引用网络上的一些教程还是我完全缺少你的问题?
Yes, two applications can talk over the internet (or bluetooth or sms/mms for that matter, but less practical). Just like any two computers can communicate over the internet. There's a wide variety of protocols. A whole world really. Do you need references to some tutorials on networking or am I totally missing your question?
编辑:您可以尝试的TCP / IP指南一个前奏。
You can try The TCP/IP Guide for an intro
编辑:而对于Android的你可能想用自己 socket接口
And for android you probably want to use their socket interface
更新:关于如何客户之间的沟通 - 你可能不希望依靠知道一个特定的邻居的IP地址。通常你做的是一些已知的主机作为服务器,对等体之间协调,有时中继它们之间的消息,或者只通知客户有关对方的地址的工作。
UPDATE: About how to communicate between clients - you probably don't want to rely on knowing a particular peer's IP address. Usually what you do is work with some known host as a server, which coordinates between the peers, sometimes relaying the messages between them, or alternatively just notifying the clients about each other's addresses.
这篇关于是否有可能两款Android手机之间的沟通?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!