First, let me thank you for the great article - it has proved really valuable for me in my current project.
I am currently trying to extend the example to enable transfer of XML-data (or any data). However, I am not sure how to manipulate the recieved data as a complete string to parse using another function.
Your example revieces a byte at a time and appends this to the content of a text box. Your example uses an "iterative" function to recieve each byte and then calls WaitForData() to wait for the next byte. But to be able to manipulate this data I need to somehow collect it in a string and when the data/command from the client has been received - do something like sending a answer back.
The setup could be:
Client sends command: "GetAmountInAccount"
Server recieves this, checks the and replyes: "You are broke"
but how do I detect when the entire command from the client has been received?
Thanks,