Hey guys, I've been working on a real-time multiplayer framework that I thought some of you might find pretty useful.www.soragora.com
The java client syncs up the server to handle all the network communication between multiple clients and ensures one is synced.
The authoritative server also handles player matchmaking and room hosting. If you don't want to host it yourself, you can always use the cloud service.
If you're interested, sign up and I'll send you access to our Java client and server. It's designed for Android, but it should also work on desktop games. Hope it helps!