21 #ifdef OF_HAVE_SOCKETS 27 # include <exec/types.h> 28 # include <exec/tasks.h> 31 OF_ASSUME_NONNULL_BEGIN
59 - (void)objectIsReadyForReading: (
id)object;
66 - (void)objectIsReadyForWriting: (
id)object;
68 #if defined(OF_AMIGAOS) || defined(DOXYGEN) 74 - (void)execSignalWasReceived: (ULONG)signalMask;
89 @property (readonly, nonatomic) int fileDescriptorForReading;
103 @property (readonly, nonatomic) int fileDescriptorForWriting;
106 #ifdef OF_HAVE_SOCKETS 121 id <OFKernelEventObserverDelegate> _Nullable _delegate;
122 # if defined(OF_AMIGAOS) 123 struct Task *_waitingTask;
125 # elif defined(OF_HAVE_PIPE) 128 OFSocketHandle _cancelFD[2];
129 struct sockaddr_in _cancelAddr;
132 ULONG _execSignalMask;
140 @property OF_NULLABLE_PROPERTY (assign, nonatomic)
143 # if defined(OF_AMIGAOS) || defined(DOXYGEN) 149 @property (nonatomic) ULONG execSignalMask;
152 # ifdef OF_HAVE_CLASS_PROPERTIES 153 @property (
class, readonly, nonatomic)
bool handlesForeignEvents;
161 + (instancetype)observer;
171 + (bool)handlesForeignEvents;
178 - (instancetype)init;
194 - (instancetype)initWithRunLoopMode: (nullable
OFRunLoopMode)runLoopMode;
273 - (void)observeUntilDate: (
OFDate *)date;
293 - (bool)processReadBuffers;
297 OF_ASSUME_NONNULL_END
This protocol is implemented by classes which can be observed for readiness for reading by OFKernelEv...
A class for storing, accessing and comparing dates.
Definition: OFDate.h:33
A class for storing constant strings using the @"" literal.
Definition: OFConstantString.h:41
The root class for all other classes inside ObjFW.
Definition: OFObject.h:690
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:47
double OFTimeInterval
A time interval in seconds.
Definition: OFObject.h:154
A class that can observe multiple kernel events (e.g. streams being ready to read) at once...
Definition: OFKernelEventObserver.h:115
This protocol is implemented by classes which can be observed for readiness for writing by OFKernelEv...
A protocol that needs to be implemented by delegates for OFKernelEventObserver.
Definition: OFKernelEventObserver.h:35
A class for storing and manipulating arbitrary data in an array.
Definition: OFMutableData.h:29