Home > Language Reference > Classes > StreamSocket

Ready Property

Tests whether the input or output buffer contains data.

Syntax

Public Property Get Ready(ByVal eDirection As HbStream) As Boolean

ParameterDescription
eDirectionSpecifies the buffer to test.

Remarks

The Ready property indicates if the input or output buffers contain data. If this is the case, the property returns the value True. Otherwise, the value False is returned and calls to the Read or Write methods will block.

The eDirection parameter specifies the buffer to test, and can take one of the two following values:

ConstantValueDescription
hbStreamRead&H0000Tests the input buffer.
hbStreamWrite&H0001Tests the output buffer.

This property is typically used to poll the port, in conjunction with a timer for example.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0-
Windows CEWindows CE 3.0-