#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); } }