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

◆ setAdapterDirectProxyAsync() [2/2]

std::function< void()> Ice::LocatorRegistryPrx::setAdapterDirectProxyAsync ( std::string_view id,
const std::optional< Ice::ObjectPrx > & proxy,
std::function< void()> response,
std::function< void(std::exception_ptr)> exception = nullptr,
std::function< void(bool)> sent = nullptr,
const Ice::Context & context = Ice::noExplicitContext ) const

Registers or unregisters the endpoints of an object adapter.

Parameters
idThe adapter ID.
proxyA dummy proxy created by the object adapter. proxy carries the object adapter's endpoints. The locator considers an object adapter to be active after it has registered its endpoints. When proxy is null, the endpoints are unregistered and the locator considers the object adapter inactive.
responseThe response callback.
exceptionThe exception callback.
sentThe sent callback.
contextThe request context.
Returns
A function that can be called to cancel the invocation locally.