Resolve TCP/IP Server Warning: Unable to Read Any Data
Issue
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 - readlinefunction.
- Reading binary data using the - readfunction.
- Reading binblock data using the - readbinblockfunction.
| Cause | Solution | 
|---|---|
| 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 Terminatorproperty
                                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, seeconfigureTerminator. | 
| 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 tcpserverobject. Check that the value of theConnectedproperty is1(true) for the
                                server. Also verify that the connected client has attempted to send
                                data to the server. | 
See Also
read | readline | readbinblock