214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
|
+
|
/**
* @brief Whether the stream can block.
*
* By default, a stream can block.
* On Win32, setting this currently only works for sockets!
*
* @throw OFGetOptionFailedException The option could not be retrieved
* @throw OFSetOptionFailedException The option could not be set
*/
@property (nonatomic) bool canBlock;
/**
* @brief The delegate for asynchronous operations on the stream.
*
|
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
|
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
|
+
+
+
+
+
+
+
+
+
+
+
+
|
*
* @note Override this method with your actual end of stream checking
* implementation when subclassing!
*
* @return Whether the lowlevel is at the end of the stream
*/
- (bool)lowlevelIsAtEndOfStream;
/**
* @brief Returns whether the lowlevel has data in the read buffer.
*
* @warning Do not call this directly!
*
* @note Override this method in case your stream can buffer data itself, such
* as when implementing @ref OFTLSStream. If not overridden, it always
* returns false.
* @return Whether the lowlevel has data in the read buffer
*/
- (bool)lowlevelHasDataInReadBuffer;
@end
OF_ASSUME_NONNULL_END
|