recordLength (property)

If set to a positive value, this setting defines the length of data records to be received.

Syntax

- (int)recordLength:(int)connectionId;
- (void)setRecordLength:(int)connectionId:(int)newRecordLength;
public func recordLength(connectionId: Int32) throws -> Int32
public func setRecordLength(connectionId: Int32, newRecordLength: Int32) throws -> Void

Default Value

0

Remarks

If set to a positive value, this setting defines the length of data records to be received. The class will accumulate data until RecordLength is reached and only then fire the DataIn event with data of length RecordLength. This allows data to be received as records of known length. This value can be changed at any time, including within the DataIn event.

A value of 0 (default) means this setting is not used.

The ConnectionId parameter specifies the index of the item in the array. The size of the array is controlled by the ConnectionCount property.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 iOS Edition - Version 20.0 [Build 8307]