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

◆ ice_getConnectionAsync() [2/2]

std::function< void()> Ice::ObjectPrx::ice_getConnectionAsync ( std::function< void(Ice::ConnectionPtr)> response,
std::function< void(std::exception_ptr)> ex = nullptr,
std::function< void(bool)> sent = nullptr ) const

Gets the connection for this proxy.

If the proxy does not yet have an established connection, it first attempts to create a connection.

Parameters
responseThe response callback. It accepts:
  • The connection for this proxy.
exThe exception callback.
sentThe sent callback.
Returns
A function that can be called to cancel the invocation locally.