List of all members.
Detailed Description
A class that can observe multiple streams at once.
Note: Currently, Win32 can only observe sockets and not files!
Member Function Documentation
- (void) addStreamToObserveForReading: |
|
(OFStream*) |
stream |
|
|
Adds a stream to observe for reading.
This is also used to observe a listening socket for incoming connections, which then triggers a read event for the observed stream.
It is recommended that the stream you add it set to non-blocking mode.
- Parameters:
-
| stream | The stream to observe for reading |
- (void) addStreamToObserveForWriting: |
|
(OFStream*) |
stream |
|
|
Adds a stream to observe for writing.
It is recommended that the stream you add it set to non-blocking mode.
- Parameters:
-
| stream | The stream to observe for writing |
Observes all streams and blocks until an event happens on a stream.
- (BOOL) observeWithTimeout: |
|
(int) |
timeout |
|
|
Observes all streams until an event happens on a stream or the timeout is reached.
- Parameters:
-
| timeout | The time to wait for an event, in milliseconds |
- Returns:
- A boolean whether events occurred during the timeinterval
- (void) removeStreamToObserveForReading: |
|
(OFStream*) |
stream |
|
|
Removes a stream to observe for reading.
- Parameters:
-
| stream | The stream to remove from observing for reading |
- (void) removeStreamToObserveForWriting: |
|
(OFStream*) |
stream |
|
|
Removes a stream to observe for writing.
- Parameters:
-
| stream | The stream to remove from observing for writing |
The documentation for this class was generated from the following files: