[omniORB] IP Address vs. Hostname

Duncan Grisby duncan@grisby.org
Wed May 7 10:48:02 2003


On Monday 5 May, andreas@florath.net wrote:

[...]
> 	But when I query my CORBA name server 'omniNames' (also only
> servers using omniOrb are used!), I found the hostname in the IOR: (the
> hostname is called 'common')

[...]
> 1) Is the answer in the FAQ outdated (i. e. wrong) or is it just a
>    special case for 127.0.0.1?

No, the FAQ is correct. omniORB always puts the IP address in IORs,
unless you tell it otherwise.

> 2) When does omniORB put the IP adress in the IOR and when the
>    hostname?

Never, unless you give an -ORBendPoint option, or set the
OMNIORB_USEHOSTNAME environment variable.

> 	A reference to the omniOrb source where the IOR is build would
> be great! 

There's no single location where IORs are built. The most useful
places for you to look if you want to dig into it are
objectAdapter.cc, function omniObjAdapter::initialise and
tcp/tcpEndpoint.cc, function tcpEndpoint::Bind.

Cheers,

Duncan.

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