title: How create a message protocol
body: <p>So I have to create a message protocol that works like this:</p>
  
  <pre><code>codFunc arg1 arg2...
  </code></pre>
  
  <p>ex:</p>
  
  <pre><code>0 'hello world'
  10 'user' 'password'
  </code></pre>
  
  <p>Right now I concatenate to send, and use <code>string.split</code> to read, but for several reasons, that is not the best way.</p>
  
  <p>So my question is, what's the best way to create the protocol? What existing protocols should I use?</p>
  
  <p>Thanks.</p>