readBinary

readBinary(length: Integer): Binary;

The readBinary method of the JadeMultiWorkerTcpConnection class reads binary data from the connection and returns the binary value when the number of bytes of data specified in the length parameter have been read or when a block of data is received, depending on the setting of the fillReadBuffer property.

This method can be called only when the value of the state property is Connected.

If the value of the timeout property is not zero (0), the read operation can terminate with an exception and return less than the specified length.