Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ getClientProxyAsync()

virtual void Ice::AsyncRouter::getClientProxyAsync ( std::function< void(const std::optional< Ice::ObjectPrx > &returnValue, std::optional< bool > hasRoutingTable)> response,
std::function< void(std::exception_ptr)> exception,
const Ice::Current & current ) const
pure virtual

Gets the router's client proxy, i.e.

the proxy to use for forwarding requests from the client to the router. If a null proxy is returned, the client will forward requests to the router's endpoints.

Parameters
responseThe response callback. It accepts:
  • returnValue The router's client proxy.
  • hasRoutingTable Indicates whether or not the router supports a routing table. If true, the Ice runtime will call Ice::RouterPrx::addProxies to populate the routing table. The Ice runtime assumes the router has a routing table when hasRoutingTable is not set.
exceptionThe exception callback.
currentThe Current object of the incoming request.
Remarks
Introduced in Ice 3.7.