I am writing a small IRC type server. I also have a small test client for obvious reasons. My problem is that when receiving input from the server, my client sometimes ends up with two messages in the same input buffer, which obviously causes problems. Anybody know why it is doing this?