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
| Parameter | Description |
| eDirection | Specifies 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:
| Constant | Value | Description |
| hbStreamRead | &H0000 | Tests the input buffer. |
| hbStreamWrite | &H0001 | Tests the output buffer. |
This property is typically used to poll the port, in conjunction with a timer for example.
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | - |
| Windows CE | Windows CE 3.0 | - |