26# include <exec/types.h>
27# include <exec/tasks.h>
30OF_ASSUME_NONNULL_BEGIN
46@protocol OFKernelEventObserverDelegate <
OFObject>
62- (void)objectIsReadyForReading: (
id)object;
69- (void)objectIsReadyForWriting: (
id)object;
71#if defined(OF_AMIGAOS) || defined(DOXYGEN)
77- (void)execSignalWasReceived: (ULONG)signalMask;
93@property (readonly, nonatomic)
int fileDescriptorForReading;
108@property (readonly, nonatomic)
int fileDescriptorForWriting;
111#ifdef OF_HAVE_SOCKETS
127 id <OFKernelEventObserverDelegate> _Nullable _delegate;
128# if defined(OF_AMIGAOS)
129 struct Task *_waitingTask;
131# elif defined(OF_HAVE_PIPE)
134 OFSocketHandle _cancelFD[2];
135 struct sockaddr_in _cancelAddr;
138 ULONG _execSignalMask;
146@property OF_NULLABLE_PROPERTY (assign, nonatomic)
147 id <OFKernelEventObserverDelegate> delegate;
149# if defined(OF_AMIGAOS) || defined(DOXYGEN)
155@property (nonatomic) ULONG execSignalMask;
163+ (instancetype)observer;
178- (void)addObjectForReading: (
id <OFReadyForReadingObserving>)object;
190- (void)addObjectForWriting: (
id <OFReadyForWritingObserving>)object;
202- (void)removeObjectForReading: (
id <OFReadyForReadingObserving>)object;
214- (void)removeObjectForWriting: (
id <OFReadyForWritingObserving>)object;
242- (void)observeUntilDate: (
OFDate *)date;
257- (bool)of_processReadBuffers;
double OFTimeInterval
A time interval in seconds.
Definition OFObject.h:154
A class for storing, accessing and comparing dates.
Definition OFDate.h:34
A class that can observe multiple kernel events (e.g. streams being ready to read) at once.
Definition OFKernelEventObserver.h:122
An abstract class for storing, adding and removing objects in an array.
Definition OFMutableArray.h:48
A class for storing and manipulating arbitrary data in an array.
Definition OFMutableData.h:30
A class for creating mutual exclusions.
Definition OFMutex.h:38
The root class for all other classes inside ObjFW.
Definition OFObject.h:692