Android的P2P多人游戏(用)XMPP /谷歌谈二)JXTA peerdroid三)其他方式)方式、游戏、P2P、Android

2023-09-04 23:51:56 作者:誓言只是一时的失言

我是一个Android开发人员,我做了一些棋盘游戏。现在,我要让我的一些棋盘游戏的多人。我不想创建和托管自己的Web服务,所以我想过P2P。

I am an android developer and I made some board games. Now i want to make some of my board games multiplayer. I don't want to create and host my own web service, so i thought about P2P.

第一件事,我发现了XMPP协议,但它不是真正的P2P,但如果我可以使用现有的谷歌Talk服务,我已经准备好了。同时利用现有的谷歌帐户,而与你的谷歌Talk客户端的正常工作的干扰这可能吗?

The first thing i found was the XMPP protocol, however it's not real P2P, but if i can use the existing google talk service, i'm ready to go. Is this possible while using your existing google account without interfering with the normal working of your google talk client?

然后,我听到JXTA,一个真正的P2P解决方案,而且它已经从J2ME移植到Android( HTTP:/ /$c$c.google.com/p/peerdroid/ )。

Then i heard about JXTA, a real P2P solution, and it's already ported from J2ME to Android (http://code.google.com/p/peerdroid/).

也许我overcomplexing这里的东西(像我一样有时)

Maybe i am overcomplexing things here (as i do sometimes)

我只是想知道做简单的P2P的桌上游戏最简单的方法。

I just want to know the easiest way to do simple P2P for a boardgame.

所有的意见都欢迎!在此先感谢

All your opinions are welcome! Thanks in advance

推荐答案

克里斯托夫,你得到一个回答你的问题?我一直工作在一个多播放器应用程序最近的好,虽然我选择到主机服务器(原)。我现在重新考虑我的选择,虽然,但我使用完全存储库支持对等通信。基础协议是建立在谷歌protobuf的顶部。它本质上是建立在Netty的顶部全双工RPC堆栈,它可以使用protobuf的。这里的URL到RPC的protobuf堆栈:的http:// code .google.com / P / protobuf的-RPC-PRO /

Kristof, Did you get an answer to your question? I've been working on a multi-player application recently as well, though I've chosen to host the server (originally). I'm now reconsidering my choice, though, but the library I'm using fully supports peer to peer communications. The underlying protocol is built on top of Google Protobuf. It's essentially a full duplex RPC stack built on top of Netty, which can use Protobuf. Here's the URL to the RPC protobuf stack: http://code.google.com/p/protobuf-rpc-pro/

笔者一直非常有帮助,我发现了几个错误,没有重大。我也有过让这些库工作在我的Andr​​oid手机非常少的问题,但他们并不十分紧凑型。没有什么特别大,只是不小:)。到目前为止,我已经没有问题,让工作同步和异步通信。因此,我可以移动我的比赛结束了一个点对点的风格,只是提供一个将用于查找现有的游戏/服务器必需的位置/注册服务器。

The author has been very helpful and I've found a couple of bugs, nothing major. I also had very little issues getting these libraries working on my Android phone, but they're not terribly "compact." Nothing extraordinarily large, just not small :). So far, I've had no issues getting the communications working both synchronously and asynchronously. As such, I may be moving my game over to a "peer to peer" style, and just provide the necessary location/registration server that would be used to find existing games/server.