Main Content

Resolve TCP/IP Server Warning: Unable to Read Any Data


These remedies apply when you receive no data and you get this warning message:

'tcpserver' unable to read any data

Possible Solutions

Try these remedies to resolve the following causes for when you use the TCP/IP server interface for:

  • Reading ASCII (text) data using the readline function.

  • Reading binary data using the read function.

  • Reading binblock data using the readbinblock function.

An invalid command was sent to the connected client, so there is a problem reading the response to the command from the server.Check your client's documentation for proper command formatting.
An incorrect write terminator was sent to the connected client before attempting to read data, so there is no data to read.Verify that the server's Terminator property is set to the value required by your client. The server and its connected client must have the same terminator. For more information about setting the property, see configureTerminator.
The server did not receive the data because a client was not connected to it or the connected client did not send any data.Verify that the client is created using the address and port that you specified when you created the tcpserver object. Check that the value of the Connected property is 1 (true) for the server. Also verify that the connected client has attempted to send data to the server.

See Also

| |

Related Topics