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

◆ ice_getConnectionAsync() [1/2]

std::future< Ice::ConnectionPtr > Ice::ObjectPrx::ice_getConnectionAsync ( ) const
nodiscard

Gets the connection for this proxy.

If the proxy does not yet have an established connection or its connection is closed or being closed, it first attempts to create a new connection. For a fixed proxy, this function returns the connection this proxy is bound to, even when this connection is closed.

Returns
A future that becomes available when the connection is established. This future holds:
  • The connection for this proxy.
Remarks
When this proxy reaches its target object through collocation optimization (see ice_collocationOptimized), the future holds a null connection: collocated invocations don't use a connection.