Owning Palette: TCP VI and Functions
Requires: Base Package
Reads a number of bytes from a TCP network connection, returning the results in data out.
|mode indicates the behavior of the read operation.
|connection ID is a network connection refnum that uniquely identifies the TCP connection.|
|bytes to read is the number of bytes to read. Use one of the following techniques to handle messages that might vary in size:
|timeout ms specifies the time, in milliseconds, that mode waits before reporting a timeout error. The default is 25,000 ms. A value of –1 indicates to wait indefinitely.|
|error in describes error conditions that occur before this node runs. This input provides standard error in functionality.|
|connection ID out returns the same value as connection ID.|
|data out contains the data read from the TCP connection.|
|error out contains error information. This output provides standard error out functionality.|
Refer to the following VIs for examples of using the TCP Read function: