Hello All,
I am writing a TCP/IP client that connects to a server using 'ConnectToTCPServer'. The client sends various commands to the server which are then returned. For what I am doing, using the asynchronous callback created with the 'ConnectToTCPServer' call is rather unwieldy. However I noticed that simply calling 'ClientTCPRead' directly after 'ClientTCPWrite' seems to work while allowing me to bypass the asynchronous callback created in 'ConnectToTCPServer' (at least in my version of CVI 7.0). My question is, are there any problems that might occur from using 'ClientTCPRead' directly instead of using it within the callback created by 'ConnectToTCPServer'?
The one problem that I can see is that if there are multiple client connections to the server then I won't know which client the data I am reading is meant for. But for the purposes of my application only one client can be connected to the server at a time, so this would not be an issue.