PPI: Checkin of first compiling (yet not working) version
[senf.git] / Scheduler / ReadHelper.ct
index 40ac199..ce7e75c 100644 (file)
@@ -72,7 +72,8 @@ prefix_ void senf::ReadHelper<Handle>::process(Handle handle,
     try {
         if (event != senf::Scheduler::EV_READ)
             throw SystemException(EPIPE);
-        std::string rcv (handle.read(maxSize_ - data_.size()));
+        std::string rcv;
+        handle.read(rcv, maxSize_ - data_.size());
         data_.append(rcv);
         std::string::size_type n = predicate_ ? (*predicate_)(data_) : std::string::npos;
         if (n != std::string::npos || data_.size() >= maxSize_ || rcv.size() == 0) {
@@ -118,4 +119,6 @@ operator()(std::string const & data)
 // c-file-style: "senf"
 // indent-tabs-mode: nil
 // ispell-local-dictionary: "american"
+// compile-command: "scons -u test"
+// comment-column: 40
 // End: