[omniORB] Do _narrow() always result in net traffic?
Haarek Ryeng
Haarek.Ryeng@datarespons.no
Wed, 03 Nov 1999 14:29:26 +0100
This is a multi-part message in MIME format.
--------------1E9B8BAA535208C9676C7BF8
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
I'm replying to myself, as I think I found the answer.
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.
So - there is practically no overhead in calling _narrow()!
-Haarek Ryeng (thinking loud)
Haarek Ryeng wrote:
> 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’s convenient to store only references of
> the base class, but to push data to a more specialised class
> – thus needing to down-cast.
> As always – alas – the communication rate is limited.
>
> Haarek Ryeng
--------------1E9B8BAA535208C9676C7BF8
Content-Type: text/x-vcard; charset=us-ascii;
name="haarek.ryeng.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Hårek Ryeng
Content-Disposition: attachment;
filename="haarek.ryeng.vcf"
begin:vcard
adr;dom:;;;N-1322 HØVIK;;;
n:Ryeng;Hårek
x-mozilla-html:FALSE
org:Data Respons AS
version:2.1
email;internet:haarek.ryeng@datarespons.no
title:M.sci (computers & signal processing)
tel;fax:67112050
tel;home:90196734
tel;work:67112071
x-mozilla-cpt:;0
fn:Hårek Ryeng
end:vcard
--------------1E9B8BAA535208C9676C7BF8--