Closures

The C++ wrappers for zenoh callbacks. See Closure templates for details of closures API

typedef ClosureMoveParam<::z_owned_closure_reply_t, ::z_owned_reply_t, zenoh::Reply> zenoh::ClosureReply

Callback type passed to Session::getto process Replys from Queryables.

typedef ClosureConstRefParam<::z_owned_closure_query_t, ::z_query_t, zenoh::Query> zenoh::ClosureQuery

Callback type passed to Session::declare_queryable to process received Querys.

typedef ClosureConstRefParam<::z_owned_closure_sample_t, ::z_sample_t, zenoh::Sample> zenoh::ClosureSample

Callback type passed to Session::declare_subscriber to process received Samples.

typedef ClosureConstRefParam<::z_owned_closure_zid_t, ::z_id_t, zenoh::Id> zenoh::ClosureZid

Callback type passed to Session::info_routers_zid and Session::info_peers_zid to process received Ids.

typedef ClosureMoveParam<::z_owned_closure_hello_t, ::z_owned_hello_t, zenoh::Hello> zenoh::ClosureHello

Callback type passed to zenoh::scout to process received Hellos.

class ClosureReplyChannelSend : public zenohcxx::ClosureMoveParam<::z_owned_closure_reply_t, ::z_owned_reply_t, zenoh::Reply>

Send data function returned by zenoh::reply_fifo_new and zenoh::reply_non_blocking_fifo_new

Note

zenoh-c only

class ClosureReplyChannelRecv : public zenohcxx::ClosureMoveParam<::z_owned_reply_channel_closure_t, ::z_owned_reply_t, zenoh::Reply>

Receive data function returned by zenoh::reply_fifo_new and zenoh::reply_non_blocking_fifo_new

Note

zenoh-c only