From: Adrovic, Ervin (ervin.adrovic_at_[hidden])
Date: 2008-05-20 08:04:46
I would like to copy binary files from host A to host B. That for I was thinking to use boost MPI and open file on one side read buffer and send it to other side.
bool SendFile(std::ifstream* inputFile)
bool ret = true;
if (inputFile != NULL)
while (inputFile->eof() == false)
std::streamsize nRead = inputFile->gcount ();
GetWorld().send(1, MSG_CDATA, data);
To complicate a litle bit I may use filters (ZIP, Encrypt, ...) for this operation.
Any idea/sample hoe to implement that?
Is it possibale to do steaming using MPI?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk