[omniORB] Using cdrMemoryStream?

Duncan Grisby duncan at grisby.org
Fri Jul 22 13:38:53 BST 2005


On Friday 22 July, amos at amos.mailshell.com wrote:

> > Have you initialised the ORB?  Guessing that name is a string or
> > wstring, marshalling it requires that the ORB has been initialised, so
> > the code set conversion support is initialised.
> 
> What do you mean by "initialized the ORB"? This method is called by the
> ORB as a "server" of a CORBA request but doesn't use an ORB anywere
> in its code.

I mean that you must have called CORBA::ORB_init(). Clearly you have
done.

> Once the objects are serialized, I store and retrieve them to/from a
> Berkeley DB 4.3 local database. Once they are retrieved and
> de-serialized they are sent to other CORBA clients which for are
> expected to be solely Intel x86 machines for the foreseeable future.
> I might actually try to avoid the de-serialization until the byte stream
> reaches the final destination.

If you ever find yourself needing to read or write on a big endian
machine, you can configure the cdrMemoryStream to byte swap for you.

> Is there documentation about these classes?  I couldn't find any.

No, there isn't any documentation, I'm afraid. They're internal types
used inside omniORB, but as you've found, there's nothing stopping you
from using them in application code.

Cheers,

Duncan.

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



More information about the omniORB-list mailing list