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

◆ subscribeAndGetPublisherAsync() [2/2]

std::function< void()> IceStorm::TopicPrx::subscribeAndGetPublisherAsync ( const QoS & theQoS,
const std::optional< Ice::ObjectPrx > & subscriber,
std::function< void(std::optional< Ice::ObjectPrx >)> response,
std::function< void(std::exception_ptr)> exception = nullptr,
std::function< void(bool)> sent = nullptr,
const Ice::Context & context = Ice::noExplicitContext ) const

Subscribes to this topic.

Parameters
theQoSThe quality of service parameters for this subscription.
subscriberThe subscriber's proxy. This proxy cannot be null.
responseThe response callback. It accepts:
  • The per-subscriber publisher proxy. 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.
See also
unsubscribe