[omniORB] file transfer implementation code

Lanctot, Benoit benoit.lanctot@nrc.ca
Wed, 2 Jan 2002 14:17:05 -0500


Hi everyone,

I am trying to transfer large (5 to 100 Meg) ASCII file using CORBA.  I have
an idl example:


typedef sequence<char> FileChunk;
typedef unsigned short ChunkSize;

interface FileIterator {
   FileChunk next(in ChunkSize how_much);
   void destroy();
};

interface FileTransfert {
   FileChunk get(in string fname, in ChunkSize how_much, out FileIterator
ft);
   void put(in string fname, in FileChunk first, in FileIterator ft);
};


I am CORBA beginner; I don't understand how to write the implementation code
for the server?

Couldn't someone help me?

Thanks


Ben

Benoit Lanctot
Intelligent Forming Technologies
Industrial Materials Institute / National Research Council Canada
Boucherville, Quebec, Canada