ObjFW
Public Member Functions
<OFStreamObserverDelegate> Protocol Reference

A protocol that needs to be implemented by delegates for OFStreamObserver. More...

#import <OFStreamObserver.h>

Inheritance diagram for <OFStreamObserverDelegate>:
<OFObject>

List of all members.

Public Member Functions

(void) - streamIsReadyForReading:
 This callback is called when a stream did get ready for reading.
(void) - streamIsReadyForWriting:
 This callback is called when a stream did get ready for writing.
(void) - streamDidReceiveException:
 This callback is called when an exception occurred on the stream.

Detailed Description

A protocol that needs to be implemented by delegates for OFStreamObserver.


Member Function Documentation

- (void) streamDidReceiveException: (OFStream *)  stream [optional]

This callback is called when an exception occurred on the stream.

Parameters:
streamThe stream on which an exception occurred
- (void) streamIsReadyForReading: (OFStream *)  stream [optional]

This callback is called when a stream did get ready for reading.

NOTE: When -[tryReadLine] or -[tryReadTillDelimiter:] has been called on the the stream, this callback will not be called again until new data has been received, even though there is still data in the cache. The reason for this is to prevent spinning in a loop when there is an incomplete string in the cache. Once the string is complete, the callback will be called again if there is data in the cache.

Parameters:
streamThe stream which did become ready for reading
- (void) streamIsReadyForWriting: (OFStream *)  stream [optional]

This callback is called when a stream did get ready for writing.

Parameters:
streamThe stream which did become ready for writing

The documentation for this protocol was generated from the following file:
 All Classes Functions Variables Properties