[omniORB] On The Wrie Protocol/Filename offset

Duncan Grisby duncan at grisby.org
Wed Aug 8 11:21:12 BST 2012


On Tue, 2012-08-07 at 10:18 -0700, Tran, Thomas H wrote:

> How would I programmatically create a table of fieldname/offset of
> CORBA-IDL structure on the wire?

Do you want to do it based on the IDL definitions, or at run-time?

If you want to do it based on IDL, you have to compile the IDL into a
suitable structure. You can do that by making a new back-end for
omniidl. See

  http://omniorb.sourceforge.net/omni41/omniidl.html

If you're asking because you're sniffing the traffic and want to decode
it, you might find Wireshark's idl2wrs helpful. It's a back-end for
omniidl that builds a Wireshark plugin:

  http://www.wireshark.org/docs/man-pages/idl2wrs.html


If you're trying to do it at run-time, look at the CORBA::TypeCode
interfaces to see how to dynamically find out about a type definition.

Cheers,

Duncan.

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





More information about the omniORB-list mailing list