Original Post
I am trying to program a server/client, and when someone logs in the server sends everyone a text message welcoming the new user. The server then sends a message to everyone telling them that a there is a new user. The problem is that part of the second message overwrites the first message. I have a few bytes for the code and length of the message, then it reads the message. Part of that message ended up being the code and length for the next message. Then when it reads the next piece of data the code and length are completely messed up. Is there any settings I need to do so that two sends don't overwrite each other?