So I am trying a little bit of network and socket programming, I have created simple client and server java application that will connect and allow users to enter messages and talk to each other.
Next I am trying to create a protocol for a game I am looking to make, the game involves 12 lights that are either on or off, the server will use a protocol to send the client values and depending on these values a certain light will turn on.
Example - 000000000100 will turn on light three
The protocol will work the same way from the client in that a button will be pressed and the string will be sent back to the server, the two strings will be checked if they match and if so the user will get a point.
The trouble I am having is where to begin? I have no major knowledge on creating protocols and looking to be pointed in the right direction.
If I send the binary string between client and server will that be considered a protocol or is there more to it?