I have a small app that remote controls software on another machine via a tcp/ip connection that is working for the most part. Now I am trying to clean up the rough edges so I can start adding more functions to it.
One auestion I have is regarding data received in the tcpsocket buffer. When you use the Readall method, does this then empty the tcp buffer or do I need to purge it after I read it and stuff it in my buffer and before I send another tcp/ip command out that port? In other words do I need to, in code make sure no data is left in the tcpsocket buffer before the next tcpsocket write so my parsing does not get confused.
Basically this app when a command button is pushed, sends one tcp command, recieves data, then based on the recieved data sets a label to say no data or sends another command, receieves other data to be displayed, followed by sending a second data request, receieves other data and displays that in another label, then starts all over again. The first command works in a timer, it is the rest I am working my way through.