Skip to content

Instantly share code, notes, and snippets.

@typeoneerror
typeoneerror / gist:1001461
Created May 31, 2011 22:59
gamekit packets
/** Types of packets sent by session. */
typedef enum {
PacketTypeStart, /**> packet to notify games to start. */
PacketTypeRequestSetup, /**> server wants client info. */
PacketTypeSetup, /**> send client info to server. */
PacketTypeSetupComplete, /**> round trip made for completion. */
PacketTypeTurn, /**> packet to notify game that a turn is up. */
PacketTypeRoll, /**> packet to send roll to players. */
PacketTypeEnd, /**> packet to end game. */
PacketTypeHeartbeat, /**> packet to attempt to keep peers alive. */