- Returns:
- The number of bytes read (which may be less than requested)
- Parameters:
-
| data | Pointer to buffer to receive data |
| maxlen | Maximum number of bytes to read |
Reads a block of data from the socket into the given buffer. Will wait forever until requested amount of data has been read if necessary. Is compatible with thread cancellation in
FX::QThread on all platforms.
Implements FX::QIODevice.