Results 1 to 3 of 3

Thread: multicast demo: combining server and client

  1. #1
    n2503v is offline Registered User
    Name: Alex Makarenko
    Organization: ACFR, University of Sydney
    Project: Orca
    Join Date
    Jun 2005
    Posts
    134

    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
    Marathon Robotics
    project: multi-robot systems

  2. #2
    dwayne's Avatar
    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
    397
    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

  3. #3
    n2503v is offline Registered User
    Name: Alex Makarenko
    Organization: ACFR, University of Sydney
    Project: Orca
    Join Date
    Jun 2005
    Posts
    134
    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
    Marathon Robotics
    project: multi-robot systems

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. about chat demo applet client
    By wangjun in forum Help Center
    Replies: 2
    Last Post: 12-21-2010, 04:39 AM
  2. ice multicast demo address
    By ctennis in forum Bug Reports
    Replies: 1
    Last Post: 05-23-2008, 11:09 AM
  3. Replies: 6
    Last Post: 08-15-2007, 02:08 AM
  4. Replies: 3
    Last Post: 06-06-2007, 05:57 PM
  5. Replies: 3
    Last Post: 11-26-2004, 09:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •