Results 1 to 5 of 5

Thread: Question about Glacier.Router.Client.Endpoints in Glacier!

  1. #1
    rc_hz is offline Registered User
    Name: Eric RC
    Organization: www.genband.com
    Project: No project yet
    Join Date
    Jul 2004
    Location
    Hangzhou, China
    Posts
    189

    Question about Glacier.Router.Client.Endpoints in Glacier!

    I am reading "Distributed Programming with Ice" paper and has reached Chapter 29.3.1. But I can not understand why we have to config Glacier.Router.Client.Endpoints. I can not see any necessity of Glacier.Router.Client.Endpoints if we use router without callback objects.

    Could anybody explain it for me ? Thanks!
    Last edited by rc_hz; 11-19-2004 at 02:07 AM.

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Glacier.Router.Client.Endpoints defines the endpoints to which clients connect. If this is not defined, your clients cannot reach Glacier. If you do not use callbacks, then there is no need to define Glacier.Router.Server.Endpoints, as this defines the endpoints where the servers connect to Glacier.

  3. #3
    rc_hz is offline Registered User
    Name: Eric RC
    Organization: www.genband.com
    Project: No project yet
    Join Date
    Jul 2004
    Location
    Hangzhou, China
    Posts
    189
    Thanks!

    I can understand Glacier.Router.Server.Endpoints, but i can not figure out the difference between Glacier.Router.Endpoints and Glacier.Router.Client.Endpoints ? This is what the paper say:

    1)The endpoint defined by Glacier.Router.Endpoints is called the router control endpoint because it is used by the Ice run time in a client to interact directly with the router.

    2)The endpoint defined by the property Glacier.Router.Client.Endpoints is where requests from routed proxies are sent.

    Both of these endpoints must be accessible to clients and there-fore are defined on the public network interface.
    Last edited by rc_hz; 11-21-2004 at 09:13 PM.

  4. #4
    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
    1,445
    Hi,

    The endpoints defined by the Glacier.Router.Endpoints property are for use in the router's proxy that a client defines in Ice.Default.Router. The Ice::Router interface defines a getClientProxy operation, and the Glacier router's implementation of this operation returns a proxy whose endpoints are defined by Glacier.Router.Client.Endpoints.

    So, both sets of endpoints must be accessible to clients, but the endpoints in Glacier.Router.Client.Endpoints would not appear in the client's configuration. This behavior is simply an implementation detail, as the upcoming Glacier2 router does not require two sets of client-side endpoints.

    Hope that helps.
    - Mark

  5. #5
    rc_hz is offline Registered User
    Name: Eric RC
    Organization: www.genband.com
    Project: No project yet
    Join Date
    Jul 2004
    Location
    Hangzhou, China
    Posts
    189
    Originally posted by mes
    Hi,

    The endpoints defined by the Glacier.Router.Endpoints property are for use in the router's proxy that a client defines in Ice.Default.Router. The Ice::Router interface defines a getClientProxy operation, and the Glacier router's implementation of this operation returns a proxy whose endpoints are defined by Glacier.Router.Client.Endpoints.

    So, both sets of endpoints must be accessible to clients, but the endpoints in Glacier.Router.Client.Endpoints would not appear in the client's configuration. This behavior is simply an implementation detail, as the upcoming Glacier2 router does not require two sets of client-side endpoints.

    Hope that helps.
    - Mark
    Thank you mes.
    I have got the interfaces defined by Ice::Router:
    1)Object* getClientProxy();
    Get the router's client proxy, i.e., the proxy to use for forwarding requests from the client to the router.

    2)Object* getServerProxy();
    Get the router's server proxy, i.e., the proxy to use for forwarding requests from the server to the router.

    I am sorry that i can not really understand what "forwarding requests from the client to the router" means. Is there a TCP/IP connection between client and router (defined by Glacier.Router.Endpoints), right ? Why should Ice forward requests from client to router ? Though the behavior is simply an implementation detail, but i am really interested in it! Can you explain more to me ? Thank you very much!


    Last edited by rc_hz; 11-22-2004 at 12:29 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Can I start the Glacier router with java programme?
    By Jason Gao in forum Help Center
    Replies: 2
    Last Post: 08-25-2006, 04:19 AM
  2. How to get client's ip address when I use Glacier?
    By ewiniar in forum Help Center
    Replies: 2
    Last Post: 06-16-2006, 05:55 AM
  3. about glacier and router
    By li.c++ in forum Help Center
    Replies: 0
    Last Post: 10-22-2004, 05:16 AM
  4. Callback and Glacier Example?
    By feline in forum Help Center
    Replies: 5
    Last Post: 03-22-2004, 04:33 PM
  5. use glacier to call back from server to client?
    By xiehua in forum Help Center
    Replies: 2
    Last Post: 02-19-2004, 08:22 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
  •