while (toFollow)
{
ctr++;
- SCRUTE(ctr);
+ //SCRUTE(ctr);
aBlock = fileTransfer->getBlock(fileId);
toFollow = aBlock->length();
- SCRUTE(toFollow);
+ //SCRUTE(toFollow);
CORBA::Octet *buf = aBlock->get_buffer();
fwrite(buf, sizeof(CORBA::Octet), toFollow, fp);
delete aBlock;
Engines::fileBlock* fileTransfer_i::getBlock(CORBA::Long fileId)
{
- MESSAGE("fileTransfer_i::getBlock");
+ //MESSAGE("fileTransfer_i::getBlock");
Engines::fileBlock* aBlock = new Engines::fileBlock;
FILE* fp;
CORBA::Octet *buf;
buf = Engines::fileBlock::allocbuf(FILEBLOCK_SIZE);
int nbRed = fread(buf, sizeof(CORBA::Octet), FILEBLOCK_SIZE, fp);
- SCRUTE(nbRed);
+ //SCRUTE(nbRed);
aBlock->replace(nbRed, nbRed, buf, 1); // 1 means give ownership
return aBlock;
}