How should I design my message protocol so that I distinguish between user data and termination of the message.
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?
How do I something like this in C++. I'm using Windows sockets