ObjFW
Instance Methods | List of all members
<OFKernelEventObserverDelegate> Protocol Reference

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

#import <OFKernelEventObserver.h>

Inheritance diagram for <OFKernelEventObserverDelegate>:
<OFObject>

Instance Methods

(void) - objectIsReadyForReading:
 This callback is called when an object did get ready for reading. More...
 
(void) - objectIsReadyForWriting:
 This callback is called when an object did get ready for writing. More...
 
- Instance Methods inherited from <OFObject>
(Class) - class
 Returns the class of the object. More...
 
(Class) - superclass
 Returns the superclass of the object. More...
 
(bool) - isKindOfClass:
 Returns a boolean whether the object of the specified kind. More...
 
(bool) - isMemberOfClass:
 Returns a boolean whether the object is a member of the specified class. More...
 
(bool) - respondsToSelector:
 Returns a boolean whether the object responds to the specified selector. More...
 
(bool) - conformsToProtocol:
 Checks whether the object conforms to the specified protocol. More...
 
(nullable IMP) - methodForSelector:
 Returns the implementation for the specified selector. More...
 
(nullable const char *) - typeEncodingForSelector:
 Returns the type encoding for the specified selector. More...
 
(nullable id) - performSelector:
 Performs the specified selector. More...
 
(nullable id) - performSelector:withObject:
 Performs the specified selector with the specified object. More...
 
(nullable id) - performSelector:withObject:withObject:
 Performs the specified selector with the specified objects. More...
 
(bool) - isEqual:
 Checks two objects for equality. More...
 
(uint32_t) - hash
 Calculates a hash for the object. More...
 
(id) - retain
 Increases the retain count. More...
 
(unsigned int) - retainCount
 Returns the retain count. More...
 
(void) - release
 Decreases the retain count. More...
 
(id) - autorelease
 Adds the object to the topmost OFAutoreleasePool of the thread's autorelease pool stack. More...
 
(id) - self
 Returns the receiver. More...
 
(bool) - isProxy
 Returns whether the object is a proxy object. More...
 

Detailed Description

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

OFKernelEventObserver.h ObjFW/OFKernelEventObserver.h

Method Documentation

- (void) objectIsReadyForReading: (id)  object
optional

This callback is called when an object did get ready for reading.

Note
If the object is a subclass of OFStream and tryReadLine (OFStream) or tryReadTillDelimiter: (OFStream) has been called on 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 has been completed, the callback will be called again as long there is data in the cache.
Parameters
objectThe object which did become ready for reading
- (void) objectIsReadyForWriting: (id)  object
optional

This callback is called when an object did get ready for writing.

Parameters
objectThe object which did become ready for writing

The documentation for this protocol was generated from the following file: