@@ -808,15 +808,22 @@ * \param enable Whether the stream should be blocking */ - (void)setBlocking: (BOOL)enable; /** - * \brief Returns the file descriptor for the stream. + * \brief Returns the file descriptor for the read end of the stream. + * + * \return The file descriptor for the read end of the stream + */ +- (int)fileDescriptorForReading; + +/** + * \brief Returns the file descriptor for the write end of the stream. * - * \return The file descriptor for the stream + * \return The file descriptor for the write end of the stream */ -- (int)fileDescriptor; +- (int)fileDescriptorForWriting; /** * \brief Closes the stream. */ - (void)close;