Here it is.
This is my first attempt to write any networking code using XNA so please take it with a grain of salt. My code is quite unreliable at this point (e.g. connect than disconnect than try to connect again throws exception - the only solution I found so far is to restart both zunes). But, if the stars are properly aligned, it will get the 2 zunes connected. If they don't connect, restart both zunes and try again.
I don't have any code to send any data between the 2 zunes.
Instructions:
- Deploy the code on both zunes (you need to make the Zune active in the Device center).
- Launch the application on both zune
- 1st zune (host): Press Up on DPad so that it hosts the game. The background will turn blue and the Zune will start hosting a game
- 2nd zune (client): Press Down on DPad so that it tries to join an existing game. The background will turn red and the Zune will stat looking for a game. If it finds one, it will try to connect to the first one it finds.
If everything worked fine, the 1st zune should say "Player joined".
http://cid-a912b1c0a524f973.skydrive.../TicTacToe.zip
Hope this helps! I can't wait to play multiplayer games on the zune!
Adrian