blob: 90b8af6811ef17c2d107fe08b75092cde3027fb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
// **********************************************************************
//
// Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
#ifndef ICE_ROUTER_ICE
#define ICE_ROUTER_ICE
module Ice
{
/**
*
* The &Ice; router interface. Routers can be set either globally with
* [Communicator::setDefaultRouter], or with [ice_router] on specific
* proxies.
*
* <note><para> The router interface is intended to be used by &Ice;
* internals and by router implementations. Regular user code should
* not attempt to use any functionality of this interface
* directly.</para></note>
*
**/
interface Router
{
/**
*
* Get the router's client proxy, i.e., the proxy to use for
* forwarding requests from the client to the router.
*
* @return The router's client proxy.
*
**/
nonmutating Object* getClientProxy();
/**
*
* Get the router's server proxy, i.e., the proxy to use for
* forwarding requests from the server to the router.
*
* @return The router's server proxy.
*
**/
nonmutating Object* getServerProxy();
/**
*
* Add new proxy information to the router's routing table.
*
* @param proxy The proxy to add.
*
**/
idempotent void addProxy(Object* proxy);
};
};
#endif
|