Peer-to-peer phone application?

by Silver » Fri, 25 Sep 2009 07:27:14 GMT


Sponsored Links
 Hello all,

I'm with a group of college students making a multiplayer game as a
class project on the Android platform for the G1. Our primary goal is
to allow multiple phones (or for the sake of initial testing, a phone
and an emulator on a PC) to communicate with one another. Our game is
turn based, and we've been looking into TCP/IP and VNC proxy servers
to transfer data between the game clients on each phone, but none of
them seem particularly simple to implement. We've been through many
articles documenting how difficult peer-to-peer connections are on the
Android platform.

What would some viable network protocols to use for the sake of our
project and how should we go about setting them up?


Thanks,
S

--~--~---------~--~----~------------~-------~--~----~



Peer-to-peer phone application?

by Dan Sherman » Fri, 25 Sep 2009 07:48:58 GMT


 Put a server between them, and have each of them talk to the server.

NAT punchthrough and such isn't easy, and to be honest, with a game, you
want some sort of central system to make sure everything is legit
(anti-cheating) :)

- Dan





--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Peer-to-peer phone application?

by Roman ( T-Mobile USA) » Sat, 26 Sep 2009 01:52:33 GMT


 Right now there is no "real" P2P possible on Android using the
official SDK APIs.

In case of Wifi there is no support of Ad-Hoc. You could try to use a
multicast approach where you try first to discover which devices are
in the WLAN. Problem with multicast/broadcast on Wifi is that your
network performance gets impacted very fast when you add the number of
clients in the network. Also the type of traffic in the WLAN
influences the throughput.

If you think about using a central server then I would not all your
setup "P2P" anymore.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
T  Mobile stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. X1O upgrade 2.1

Android 2.1 Sony Ericsson Xperia X10 update is rolling out NOW!!!!

Just downloaded the Android 2.1 (Eclair) update for the Xperia X10. Rolling out 
with build number 2.0.A.0.504.

Xperia X10 Android 2.1 firmware finally starts to roll out http://bit.ly/c2R1hT

Bersyukur

-- 
"Indonesian Android Community [id-android]" 


PING'S mobileThe Plaza Semanggi, 2nd floor B/149
: sa...@pings-mobile.com  : 02196087100


Peraturan Jual dan Kloteran ID-Android  http://goo.gl/azW7
ID Android Developer: 

2. want to align an image button bottom right

Hii,
  how to align an imagebutton bottom right.My code is as follows:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center_horizontal"
android:background="@drawable/help"
<ImageButton
android:id="@+id/done" android:src="@drawable/btn_done"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_gravity="bottom"
/>

i am getting my image left side in the bottom but i want the
imagebutton right at the bottom!

-- 

3. ExpandableListView question

4. debugging at user?

5. Google Mobile Search App Rankings

6. OOT: Get WhatsApp Messenger for your smartphone

7. How do I add the "Android" directory in Eclipse after importing