I need to test app 'A' (for which I do not have the code) which has a TCP client connection -- by passing messages to it and waiting for responses. I have written a test app 'B' (in D5) using the TServerSocker component - the problem however is that when I connect to the client app 'A' and use my app 'B' sendtext method to send a message string, the comms window on app 'A' shows the chars being received one-by-one (slowly) rather than the whole string being read.
If however I take a second copy of app 'A' and configure as a server (in INI), in order to get both of them talking, they send and receive complete strings in their comms windows OK.
What could cause this behaviour? Could this be that app 'A' is using winsock API methods directly? Am I to consider sendbuff instead? Please advise, thanks.