@@ -12,14 +12,10 @@ * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ -#if !defined(OF_HAVE_POLL) && defined(OF_HAVE_SYS_SELECT_H) -# include -#endif - #import "OFObject.h" #ifdef _WIN32 # ifndef _WIN32_WINNT # define _WIN32_WINNT 0x0501 @@ -27,13 +23,10 @@ # include # include #endif @class OFStream; -#ifdef OF_HAVE_POLL -@class OFDataArray; -#endif @class OFMutableArray; @class OFMutableDictionary; /** * \brief A protocol that needs to be implemented by delegates for @@ -78,19 +71,10 @@ { OFMutableArray *readStreams; OFMutableArray *writeStreams; OFMutableArray *queue, *queueInfo; id delegate; -#ifdef OF_HAVE_POLL - OFDataArray *FDs; - OFMutableDictionary *FDToStream; -#else - fd_set readFDs; - fd_set writeFDs; - fd_set exceptFDs; - int nFDs; -#endif int cancelFD[2]; #ifdef _WIN32 struct sockaddr_in cancelAddr; #endif } @@ -174,9 +158,13 @@ * * \param timeout The time to wait for an event, in milliseconds * \return A boolean whether events occurred during the timeinterval */ - (BOOL)observeWithTimeout: (int)timeout; + +/// \cond internal +- (BOOL)_processCache; +/// \endcond @end @interface OFObject (OFStreamObserverDelegate) @end