A protocol that needs to be implemented by delegates for OFStreamObserver. More...
#import <OFStreamObserver.h>
Instance Methods | |
(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. | |
Instance Methods inherited from <OFObject> | |
(Class) | - class |
Returns the class of the object. | |
(BOOL) | - isKindOfClass: |
Returns a boolean whether the object of the specified kind. | |
(BOOL) | - isMemberOfClass: |
Returns a boolean whether the object is a member of the specified class. | |
(BOOL) | - respondsToSelector: |
Returns a boolean whether the object responds to the specified selector. | |
(BOOL) | - conformsToProtocol: |
Checks whether the object conforms to the specified protocol. | |
(IMP) | - methodForSelector: |
Returns the implementation for the specified selector. | |
(const char *) | - typeEncodingForSelector: |
Returns the type encoding for the specified selector. | |
(id) | - performSelector: |
Performs the specified selector. | |
(id) | - performSelector:withObject: |
Performs the specified selector with the specified object. | |
(id) | - performSelector:withObject:withObject: |
Performs the specified selector with the specified objects. | |
(BOOL) | - isEqual: |
Checks two objects for equality. | |
(uint32_t) | - hash |
Calculates a hash for the object. | |
(id) | - retain |
Increases the retain count. | |
(unsigned int) | - retainCount |
Returns the retain count. | |
(void) | - release |
Decreases the retain count. | |
(id) | - autorelease |
Adds the object to the topmost OFAutoreleasePool of the thread's autorelease pool stack. | |
(id) | - self |
Returns the receiver. | |
(BOOL) | - isProxy |
Returns whether the object is a proxy object. | |
A protocol that needs to be implemented by delegates for OFStreamObserver.
- (void) streamDidReceiveException: | (OFStream *) | stream |
This callback is called when an exception occurred on the stream.
stream | The stream on which an exception occurred |
- (void) streamIsReadyForReading: | (OFStream *) | stream |
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.
stream | The stream which did become ready for reading |
- (void) streamIsReadyForWriting: | (OFStream *) | stream |
This callback is called when a stream did get ready for writing.
stream | The stream which did become ready for writing |