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

◆ getCategoryForClientAsync() [2/2]

std::function< void()> Glacier2::RouterPrx::getCategoryForClientAsync ( std::function< void(std::string)> response,
std::function< void(std::exception_ptr)> exception = nullptr,
std::function< void(bool)> sent = nullptr,
const Ice::Context & context = Ice::noExplicitContext ) const

Gets a unique category that identifies the client (caller) in the router.

This category must be used in the identities of all the client's callback objects.

Parameters
responseThe response callback. It accepts:
  • The category. It's an empty string when Glacier2.Server.Endpoints is not configured.
exceptionThe exception callback.
sentThe sent callback.
contextThe request context.
Returns
A function that can be called to cancel the invocation locally.