diff options
author | Pixel <Pixel> | 2001-10-29 16:23:12 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-10-29 16:23:12 +0000 |
commit | a259ec553a1d685ebb976ec34eaaf700d24ee0c4 (patch) | |
tree | ca310bfa8858bc3d5a1602789ecbe41e9c2ca3dd /lib/CopyJob.cc | |
parent | 2e5bed84841f33ff28dd95b77b555720c875a286 (diff) |
More tasking implementation
Diffstat (limited to 'lib/CopyJob.cc')
-rw-r--r-- | lib/CopyJob.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/CopyJob.cc b/lib/CopyJob.cc index e69de29..7dccbc5 100644 --- a/lib/CopyJob.cc +++ b/lib/CopyJob.cc @@ -0,0 +1,15 @@ +#include "CopyJob.h" + +CopyJob::CopyJob(Handle & as, Handle & ad) : s(as), d(ad) { } + +CopyJob::~CopyJob() { } + +int CopyJob::Do() { + int r; + char buffer[4096]; + + while (!s.IsClosed()) { + r = s.read(buffer, 4096); + d.write(buffer, r); + } +} |