Originally Posted by eXistenZ
Well to address the casyncsocket problem, if other people are connecting you will need to create a socket for them to use in any event, you can use that to separate out all the text. You can implement a buffer to count how much someone has sent, and simply dump after x number of bytes has been sent, that is a poor solution I agree, but something to be thought of. But the character to know the end of a sentence is a good idea unless you want to get unnecessarily(for this program) complicated. Each socket can communicate with the server, but even at that it might be better to have a buffer setup so there isn't total chaos in the chat room. Really this is probably the best and easiest way to go, live chat is hard(er) unless its between 2 people only.
What I mean by "live chat" is that the text appears on the screen as you type.