Hidden buffer in TCPsocket?

Example code as promised
https://helpdesk.emscom.co.uk/download/scpisend.zip

Two project files in the zip

scpisend is the main attraction. A console application that takes a command line, sends the passed scpi query to a tcp socket and sits waiting for the reply. The response is read from the socket and written to a temporary file. After receiving the response, scpisend will attempt to connect to an IPC socket waiting in listen mode and sends a header containing the temporary file location. All very straightforward, top down, programming.

vnasend is a quick and dirty GUI test application. Point it at the scpisend executable and click the SCPI Send button. If it doesn’t appear to do anything, check you pointed it at scpisend executable (I forgot to check). vnasend includes a wait time field which is the maximum time scpisend will wait for a response to be completely received before giving up.

As I don’t have a suitable instrument available I also had to write a simulator (hence the delay).

Be interested to hear how you get on.