2014-12-07 191 views
0

我想知道是否有可能为Android创建一个“客户端到客户端”系统,以便用户A可以发送序列化对象或类似于用户B的内容,而不必先发送给服务器。这主要是为了避免巨大的服务器成本,还有黑客攻击的风险。是否有可能为Android创建一个“客户端到客户端”系统?

编辑:我希望它可以达到1000公里左右,甚至更多,如果可能的话。

所有的答案和想法感谢!

+0

为什么我得到一个downvote? – 2014-12-07 16:03:49

+1

谁降低了我的投票能力。谢谢。 – 2014-12-07 16:18:46

+0

wi-fi直接? http://developer.android.com/guide/topics/connectivity/wifip2p.html – 2014-12-07 19:02:21

回答

2

你应该看看wi-fi direct

Using these APIs, you can discover and connect to other devices when 
each device supports Wi-Fi P2P, then communicate over a speedy 
connection across distances much longer than a Bluetooth connection. 
+0

我只有一个小问题。大概会达到多远? 1公里? 10公里? 100公里?更多? – 2014-12-07 20:44:24

+0

看到这个答案http://stackoverflow.com/questions/24586003/range-of-distances-in-which-wi-fi-direct-works它说高达100米 – 2014-12-07 20:45:46

+0

嗯......这有点太短我的目的,但我会让答案被接受,因为它解决了一般问题。还有其他的选择吗?您可以通过Google+与Google+ API发送数据吗? – 2014-12-07 20:54:47

0

目前最好的解决方案,短距离,< 100米,似乎是Wifi直接(WiFi点对点),正如Goran Horia Mihail所提到的。

如果你需要更长距离的东西,像我一样,你应该看看Parse,www.parse.com,因为 Goran Horia Mihail也提到过。