X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FReadHelper.hh;h=c4fbbc8fba9fa418e568811ed0bd8f01ce232b36;hb=9a988902090d28007578e93bffd809f6bd913155;hp=d1393ad3ba3507e1c1c389ce7ca2c59524c92c07;hpb=85ab07d100a382467a42e19d741d403a7a96c951;p=senf.git diff --git a/Scheduler/ReadHelper.hh b/Scheduler/ReadHelper.hh index d1393ad..c4fbbc8 100644 --- a/Scheduler/ReadHelper.hh +++ b/Scheduler/ReadHelper.hh @@ -42,7 +42,7 @@ namespace senf { /** \brief Asyncronous reading helper This class provides a simple asynchronous reading facility. This helper will register with - the Scheduler and read incoming data. It will collect the data until a specific numbner of + the Scheduler and read incoming data. It will collect the data until a specific number of bytes has been read or some Predicate evaluated on the data read thus far signals end of data. @@ -58,7 +58,7 @@ namespace senf { The predicate is any class instance with an operator(std::string const &). This operator is called, whenever some data has been read. If the data is not yet complete, the - predicate must return \c std::string::npos. If the ReadHelper should stop readeing more + predicate must return \c std::string::npos. If the ReadHelper should stop reading more data, the predicate must return the number of bytes which are to be considered 'matched'. \todo Move all not Handle dependent members to a ReadHandleBase class @@ -118,9 +118,9 @@ namespace senf { std::string const & data() const; ///< return data read std::string const & tail() const; ///< return data read but not matched by the predicate - bool complete() const; ///< Check wether the read has completed successfully + bool complete() const; ///< Check whether the read has completed successfully bool error() const; ///< Check for error condition - void throw_error() const; ///< If an error occured, throw it + void throw_error() const; ///< If an error occurred, throw it void revoke(); ///< Remove the ReadHelper from the scheduler