Is there a basic packet design in use for sending custom data, preferably game related information, to servers and/or clients? Any data you can think of is absolutely helpful. My purpose is to understand what a fundamental packet would look like for a packet sent from a game to some place, that allows multiplayers and stuffs. And what a packet does need as a prerequisite.
Does it involves implementing a Runnable? Does it require that it implements Serializable? Will a packet contains a few ArrayLists as member fields? I'm just looking for an easy, generic design. I know the question itself is vague, but that's my point. I just wanted to see what it looks like in the first place.
Thanks in advance.
Edited by tom_mai78101, 17 November 2012 - 12:22 PM.