title: Messaging Protocol
body: <p>How should I design my message protocol so that I distinguish between user data and termination of the message.</p>
  
  <p>For example I take input from user to send it to client over TCP/IP, now the client-side needs to know the length of message, what I thought that I use some kind of termination by which the client recognizes that message end has been reached?</p>
  
  <p>How do I something like this in C++. I'm using Windows sockets</p>