Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-17-2008
n2503v n2503v is offline
Registered User
 
Name: Alex Makarenko
Organization: ACFR, University of Sydney
Project: Orca
 
Join Date: Jun 2005
Posts: 82
multicast demo: combining server and client

Hi,
I'm playing with multi-cast for an academic research project.

The multicast demo works fine.

I tried to modify it so that one executable would be a server and a client. The idea is to have one executable per host which listens on a multicast address and also sends out messages to the same address.

The problem is that when this new "peer" sends messages only its own local object receives them. The other instances of the executable (on the same host) don't revieve anything. Not sure how to debug this. Network and Protocol traces produce no output.

Is this supposed to work?

The configuration is identical to the demo but I'm using a simplified interface (with a single setData() method).

Many thanks as always,
Alex

Ice-3.3, Linux, C++.
__________________
Alex Makarenko
Australian Centre for Field Robotics
The University of Sydney
www.cas.edu.au
project: orca-robotics.sf.net
Reply With Quote
  #2 (permalink)  
Old 09-17-2008
dwayne's Avatar
dwayne dwayne is offline
ZeroC Staff
 
Name: Dwayne Boone
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Jan 2005
Location: St. John's, Newfoundland
Posts: 215
Hi,

I expect the issue you are running into is collocation optimization. In your dual executable Ice compares the endpoints of the proxy and the adapter and determines that the object is local and thus makes a direct invocation rather than using the network. To prevent this from happening you need to disable the collocation optimization on your multicast proxy:

proxy = proxy->ice_collocationOptimized(false);

Dwayne
Reply With Quote
  #3 (permalink)  
Old 09-17-2008
n2503v n2503v is offline
Registered User
 
Name: Alex Makarenko
Organization: ACFR, University of Sydney
Project: Orca
 
Join Date: Jun 2005
Posts: 82
Thanks Dwayne, you were right on.

That's exactly what it felt like but I forgot about the optimization feature. Maybe it's worth putting a note on this in the manual as it has an unexpected result in the context of multicasting.

It's all working now.
Alex
__________________
Alex Makarenko
Australian Centre for Field Robotics
The University of Sydney
www.cas.edu.au
project: orca-robotics.sf.net
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
ice multicast demo address ctennis Bug Reports 1 05-23-2008 12:09 PM
client ask a string to the server and the server send it to the client blade Help Center 6 08-15-2007 03:08 AM
throughput demo (java client) failing to connect to throughput demo (C++ server) caos1234 Help Center 3 06-06-2007 06:57 PM
How can client know the status that client and server disconnceted? skyriver Help Center 2 06-08-2005 12:37 AM
How server initiatively send message to client, and client can responce to it? ouloba Help Center 3 11-26-2004 10:35 AM


All times are GMT -4. The time now is 11:28 PM.


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