title: Python Sockets - Creating a message format
body: <p>I have built a Python server to which various clients can connect, and I need to set a predefined series of messages from clients to the server - For example the client passes in a name to the server when it first connects. </p>
  
  <p>I was wondering what the best way to approach this is? How should I build a simple protocol for their communication? </p>
  
  <p>Should the messages start with a specific set of bytes to mark them out as part of this protocol, then contain some sort of message id? Any suggestions or further reading appreciated.</p>