readBinary

readBinary(length: Integer): Binary;

The readBinary method of the JadeInternetTCPIPConnection class reads binary data from the TCP/IP connection and returns 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 Connection class fillReadBuffer property.

This method is used by the readDataWithLength method. You should normally not call it directly because of the format of messages received. (For details, see the readDataWithLength method.)

This method can be called only when the value of the Connection class state property is Connected (2) and a zero-length request calls the readDataWithLength method, expecting the length to be read to be the first eight bytes if the message.

Only one synchronous or asynchronous read operation can be performed at one time on a connection. See also the Connection class timeout property.