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

◆ createSessionAsync() [2/2]

std::function< void()> IceGrid::RegistryPrx::createSessionAsync ( std::string_view userId,
std::string_view password,
std::function< void(std::optional<::IceGrid::SessionPrx >)> response,
std::function< void(std::exception_ptr)> exception = nullptr,
std::function< void(bool)> sent = nullptr,
const Ice::Context & context = Ice::noExplicitContext ) const

Creates a client session.

Parameters
userIdThe user ID.
passwordThe password for the given user.
responseThe response callback. It accepts:
  • A proxy to the newly created session. This proxy is never null.
exceptionThe exception callback.
sentThe sent callback.
contextThe request context.
Returns
A function that can be called to cancel the invocation locally.