|
QSDK 1.1 Documentation |
#include <Q/net.h>
Inheritance diagram for Net::ReadStream:

Public Types | |
| typedef Com::Ptr< ReadStream > | PTR |
| enum | Status { Success = 0, Failure = 1, WouldBlock = 2 } |
Public Member Functions | |
| virtual bool | read (void *buf, size_t bytes, size_t &bytesRead, bool wait)=0 |
| virtual void | setReader (ReadListener *rl)=0 |
Static Public Attributes | |
| Com::UUID | IID |
|
||||||||||||||||||||
|
Read a number of characters from the stream. The number of characters read will be returned in the 'bytesRead' argument. If end-of-file is detected on the stream, 'bytesRead' will be set to zero. If the argument 'wait' is true and there is no data immediately avalable, the method will wait until data arrives. This method will return true if data (or an end-of-file marker) was read or false if no data was readable in the non-blocking case. |
|
|
Start monitoring a stream for incoming data. When data is available to be read, the onReadable() method of the listener will be called. Applications should create a derived class of ReadListener which implements this method. To cancel a listener previously registered with setReader(), simply call setReader() with a null argument. |
|
|
COM IID 3423fc32-bf7d-4086-893d-9fb34ae96582 Reimplemented from Net::StreamBase. |
|
|
|
Qube Software Limited © 2000-2004
|
|