Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 08-12-2003
Lance Lance is offline
Registered User
 
 
Join Date: Aug 2003
Posts: 3
Repeating callbacks

Is there any way using the AMI/AMD asynchronous calls to make repeated callbacks to a client from the server. I.e. client makes call to server, server sends results back to client in a callback, the server can then call the callback again and again, sending different data to the client?

Cheers

Lance
Reply With Quote
  #2 (permalink)  
Old 08-12-2003
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 962
Hi Lance,

The first reply that your server sends isn't really a callback, i.e., it's not an invocation from server to client, it's merely a delayed response to the client's original request.

If your server needs to make invocations on the client, then the client must provide the server with a proxy that the server can use (i.e., the server becomes a client). The server can use synchronous invocations or AMI, just like any other client.

See the example in demo/Ice/callback for some sample code. Also note that if your server needs to traverse firewalls in order to make callbacks on the client, then you should read about Glacier in the Ice manual.

Hope that helps,
- Mark
Reply With Quote
  #3 (permalink)  
Old 08-12-2003
Lance Lance is offline
Registered User
 
 
Join Date: Aug 2003
Posts: 3
Thanks - I thought I was going to have to do that, I just didn't want to! I just thought that maybe as the server had sent one response back to the client, then possibly it could send multiple responses before the channel got closed.

Cheers

Lance
Reply With Quote
  #4 (permalink)  
Old 08-12-2003
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,772
I'm afraid this is not possible, because it would destroy the call type transparency. I.e., the server doesn't know if it receives an AMI call, and the client doesn't know if the server processes a request as AMD.
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
Callbacks in Glacier2 davidcr1983 Help Center 4 08-14-2006 09:49 AM
Glacier2+Callbacks KE5CRP Help Center 6 04-13-2005 06:55 PM
Ice timeouts, callbacks, and shutdown. rhochmuth Help Center 1 09-09-2004 10:50 AM
The use of context for callbacks catalin Help Center 1 08-29-2004 12:42 PM
Server To Client Callbacks kssreeram Help Center 14 10-15-2003 01:40 PM


All times are GMT -4. The time now is 10:17 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.