[omniORB] OmniORB Large files transfer

Duncan Grisby duncan at grisby.org
Fri Mar 9 15:10:00 GMT 2007


On Tuesday 6 March, Delyan Nestorov wrote:

> I am new to CORBA programming. I bought "Advanced CORBA programming in
> C++" and read it. But I need help on transfering large (about 100MB)
> files with OmniORB. Client and server will communicate via TCP/IP on
> local machine or separate machines. And my other question is how to
> tell client and server to use TCP and set IP adresses and ports.

You should send the file contents as sequences of octets. You could send
the whole file in one call, or you might want to split it up. Either way
will work, but splitting it avoids having to hold the whole file in
memory.

The processes will automatically use TCP. Re-read chapter 8 of the
omniORB manual (you have read it once, haven't you? ;-) ) to see how to
configure addresses and ports and so on.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list