[omniORB] Do _narrow() always result in net traffic?
Michael Loftis
zop12@mindless.com
Wed, 3 Nov 1999 07:02:15 -0700 (MST)
On Wed, 3 Nov 1999, Haarek Ryeng wrote:
> I'm replying to myself, as I think I found the answer.
>=20
> After browsing the omniorb code, and verifying it with another
> orb
> (Orbacus for java), I found that the _narrow() call will only
> ask the remote object if the cast qualifies for a class cast
> exception.
>=20
> So - there is practically no overhead in calling _narrow()!
>=20
> -Haarek Ryeng (thinking loud)
Shoot me if I'm wrong but CORBA 2.3 deprecates _narrow() in favor of
_downcast()
Same function essentially, but _Downcast() I think specifies other
prototypes.
>=20
>=20
> Haarek Ryeng wrote:
>=20
> > Object reference _narrow() question:
> >
> > Will a down-casting through the reference
> > <reftype>::_narrow(ref) function generate net traffic?
> > (unless the ref is of the same as <reftype>)
> >
> > Reason I ask, is that I'm implementing a data-pushing
> > mechanism where it=92s convenient to store only references of
> > the base class, but to push data to a more specialised class
> > =96 thus needing to down-cast.
> > As always =96 alas =96 the communication rate is limited.
> >
> > Haarek Ryeng
>=20