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

◆ linkAsync() [2/2]

std::function< void()> IceStorm::TopicPrx::linkAsync ( const std::optional< TopicPrx > & linkTo,
std::int32_t cost,
std::function< void()> response,
std::function< void(std::exception_ptr)> exception = nullptr,
std::function< void(bool)> sent = nullptr,
const Ice::Context & context = Ice::noExplicitContext ) const

Creates a link to another topic.

All events originating on this topic will also be sent to the other topic.

Parameters
linkToThe topic to link to. This proxy cannot be null.
costThe cost of the link.
responseThe response callback.
exceptionThe exception callback.
sentThe sent callback.
contextThe request context.
Returns
A function that can be called to cancel the invocation locally.