Skip to content

Instantly share code, notes, and snippets.

@jmhertlein
Created June 22, 2013 00:01
Show Gist options
  • Save jmhertlein/5835225 to your computer and use it in GitHub Desktop.
Save jmhertlein/5835225 to your computer and use it in GitHub Desktop.
client connects to server
<authentication happens>
client writes a RemoteAction enum to signal what it wants to do (ADD_PLAYER, REMOVE_PLAYER, etc)
server reads enum, uses a big switch-case to direct flow to appropriate method
in the appropriate method, server reads in "arguments" for action one by one, as client sends them
server executes the action once it has all its input
server communicates back exit status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment