Results 1 to 3 of 3

Thread: Connections Issue #3 - IceStorm

  1. #1
    slypete's Avatar
    slypete is offline Registered User
    Name: Pete Sylvester
    Organization: Coconaut Studios
    Project: iPhone/iPod Game
    Join Date
    Feb 2008
    Posts
    74

    Connections Issue #3 - IceStorm

    Hi Matthew,

    In this issue you provide another interface on the server to clients, ChatRoomParticipant. I'm curious why you opted against passing the publisher proxy back to clients; instead, this encapsulating object was introduced.

    The client could just as easily call ChatRoomObserver::message instead of ChatRoomParticipant::say. It seems unnecessary to me; am I missing something? Is there a limitation of Glacier2 that makes this impossible?

    No criticism intended. I'm a student with a similar design, so I value your insight.

    Thanks,
    Pete

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi Pete,

    The chat room participant interface is a facade: it hides the complexity and implementation details of the server to the clients.

    Thanks to this interface, the client doesn't need to know about the IceStorm publisher. It's also useful for the server if it needs to add some checks on the given message before distributing it to all the other clients through IceStorm. And thanks to Glacier2, you can limit client access to this single facade object. This ensures that malicious clients can't access other Ice objects.

    For more information on Glacier2, checkout the Issue #1 and #2 of the Ice newsletter.

    Cheers,
    Benoit.

  3. #3
    slypete's Avatar
    slypete is offline Registered User
    Name: Pete Sylvester
    Organization: Coconaut Studios
    Project: iPhone/iPod Game
    Join Date
    Feb 2008
    Posts
    74
    Hi Benoit,

    Thanks for the info! I figured that adding some checks before publishing was one of the main reasons; however, I hadn't thought about the additional security measure.

    I will stick with that approach. I found it annoying that I had to write a method that just calls its corresponding method on the publisher proxy. I guess that I was being lazy...

    I have read both the issues you mentioned. I think the Connections series is invaluable, both in and out of Ice.

    Thanks a lot,
    Pete

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Connections Issue #9
    By marc in forum Announcements
    Replies: 0
    Last Post: 12-06-2005, 12:21 PM
  2. Connections Issue #7
    By marc in forum Announcements
    Replies: 0
    Last Post: 10-03-2005, 11:32 AM
  3. Connections Issue #4
    By marc in forum Announcements
    Replies: 0
    Last Post: 07-01-2005, 07:01 AM
  4. Connections Issue #3
    By marc in forum Announcements
    Replies: 0
    Last Post: 06-01-2005, 03:26 PM
  5. Connections Issue #2
    By marc in forum Announcements
    Replies: 0
    Last Post: 05-02-2005, 08:52 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
  •