Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-14-2008
vincei's Avatar
vincei vincei is offline
Registered User
 
Name: Vincent Ibeachum
Organization: Sherman Observatory
Project: Remote Observatory Control
 
Join Date: Jul 2007
Posts: 34
Bidir connections and Ice::Blobject

I want to build a server and a client that each have a Ice::Blobject interface. However, I want to use a bidirectional connection to connect
the client to the server per the demo\Ice\bidir project.

Is this possible? I'm running into a problem where I can't do the equivalent of:

From Client.cpp
Code:
    CallbackSenderPrx server = 
        CallbackSenderPrx::checkedCast(communicator()->propertyToProxy("Callback.Client.CallbackServer"));
Because I don't have an equivalent to CallbackSenderPrx because I'm deriving form Ice::Blobject.

In the bidir sample CallbackSenderPrx is a typedef of:

Code:
typedef ::IceInternal::ProxyHandle< ::IceProxy::Demo::CallbackSender> CallbackSenderPrx;
I hope this makes sense !

Thanks,
Vince
Reply With Quote
  #2 (permalink)  
Old 03-14-2008
mes's Avatar
mes mes is online now
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Hi Vince,

Your ability to use a bi-directional connection is not affected by your choice of servant implementations, so it is possible to use blobject servants in this way.

However, I'm not sure what you're asking with respect to checkedCast. Using a typed proxy, checkedCast is simply a wrapper around the ice_isA operation. You can invoke this operation using Dynamic Ice as long as you handle it correctly; specifically, the operation expects a string argument containing a type id (such as "::Demo::Callback") and returns a boolean value indicating whether the remote object supports that type.

Hope that helps,
Mark
Reply With Quote
  #3 (permalink)  
Old 03-14-2008
vincei's Avatar
vincei vincei is offline
Registered User
 
Name: Vincent Ibeachum
Organization: Sherman Observatory
Project: Remote Observatory Control
 
Join Date: Jul 2007
Posts: 34
Mark,

Thanks for the quick response. The light finally went on.

I guess I got too bogged down in the details to see the simplicity of the solution to my problem.

It helps to talk

-- Vince
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blobject mwilson Help Center 3 12-04-2006 03:40 PM
Bug in Makefiles of Blobject examples (Connections 11) Andreas Scherer Bug Reports 1 02-28-2006 10:53 PM
Dynamic Ice and Blobject (revisited) KE5CRP Help Center 7 04-21-2005 01:25 AM
Dynamic Ice and Blobject (IceStorm) KE5CRP Help Center 7 04-20-2005 02:20 PM
Problem With ICE BiDir in v2.1.0 chuatecksiong Help Center 2 03-14-2005 10:50 PM


All times are GMT -4. The time now is 09:09 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.