zenoh-cpp
The zenoh-cpp library provides a client C++ API for the zenoh network protocol.
An introduction to Zenoh and its concepts is available on zenoh.io. Since the zenoh-cpp is a header-only wrapper library over the zenoh-c and zenoh-pico C libraries, it can be useful to reference the documentation of these libraries as well. The zenoh-c library is C interface to main implementation of zenoh in Rust (see zenoh Rust API api documentation for more information).
- Examples
- API Reference
- Commonly used types
- Enums
- Source Info
- Timestamp
- Encoding
zenoh::Encoding
Encoding()
Encoding()
Encoding()
as_string()
set_schema()
operator=()
operator==()
zenoh::Encoding::Predefined
zenoh_bytes()
zenoh_string()
zenoh_serialized()
application_octet_stream()
text_plain()
application_json()
text_json()
application_cdr()
application_cbor()
application_yaml()
text_yaml()
text_json5()
application_python_serialized_object()
application_protobuf()
application_java_serialized_object()
application_openmetrics_text()
image_png()
image_jpeg()
image_gif()
image_bmp()
image_webp()
application_xml()
application_x_www_form_urlencoded()
text_html()
text_xml()
text_css()
text_javascript()
text_markdown()
text_csv()
application_sql()
application_coap_payload()
application_json_patch_json()
application_json_seq()
application_jsonpath()
application_jwt()
application_mp4()
application_soap_xml()
application_yang()
audio_aac()
audio_flac()
audio_mp4()
audio_ogg()
audio_vorbis()
video_h261()
video_h263()
video_h264()
video_h265()
video_h266()
video_mp4()
video_ogg()
video_raw()
video_vp8()
video_vp9()
- Sample
- Bytes
zenoh::Bytes
Bytes()
Bytes()
Bytes()
Bytes()
Bytes()
Bytes()
Bytes()
clone()
Bytes()
Bytes()
Bytes()
as_vector()
as_string()
get_contiguous_view()
as_shm()
as_shm()
size()
slice_iter()
reader()
zenoh::Bytes::Reader
Reader()
read()
tell()
remaining()
seek_from_current()
seek_from_start()
seek_from_end()
zenoh::Bytes::SliceIterator
next()
zenoh::Bytes::Writer
Writer()
write_all()
append()
finish()
- Logging
- Error Handling
- Key Expression
- Configuration
- Session Management
- Session
zenoh::Session
Session()
Session()
open()
open()
get_zid()
declare_keyexpr()
undeclare_keyexpr()
get()
get()
declare_queryable()
declare_background_queryable()
declare_queryable()
declare_subscriber()
declare_background_subscriber()
declare_subscriber()
delete_resource()
put()
declare_publisher()
declare_querier()
get_routers_z_id()
get_peers_z_id()
start_read_task()
stop_read_task()
start_lease_task()
stop_lease_task()
read()
send_keep_alive()
send_join()
liveliness_declare_token()
liveliness_declare_subscriber()
liveliness_declare_background_subscriber()
liveliness_declare_subscriber()
liveliness_get()
liveliness_get()
new_timestamp()
close()
is_closed()
ext()
zenoh::Session::DeleteOptions
priority
congestion_control
is_express
reliability
timestamp
create_default()
zenoh::Session::GetOptions
target
consolidation
priority
congestion_control
is_express
payload
encoding
source_info
accept_replies
allowed_destination
attachment
timeout_ms
create_default()
zenoh::Session::LivelinessDeclarationOptions
create_default()
zenoh::Session::LivelinessGetOptions
timeout_ms
create_default()
zenoh::Session::LivelinessSubscriberOptions
history
create_default()
zenoh::Session::PublisherOptions
congestion_control
priority
is_express
reliability
allowed_destination
encoding
create_default()
zenoh::Session::PutOptions
priority
congestion_control
is_express
allowed_destination
timestamp
encoding
reliability
source_info
attachment
create_default()
zenoh::Session::QuerierOptions
target
consolidation
priority
congestion_control
is_express
accept_replies
allowed_destination
timeout_ms
create_default()
zenoh::Session::QueryableOptions
complete
allowed_origin
create_default()
zenoh::Session::SessionCloseOptions
zenoh::Session::SessionOptions
start_background_tasks
zenoh::Session::SubscriberOptions
allowed_origin
create_default()
- Session
- Scouting
- Publish-Subscribe
zenoh::Publisher
put()
delete_resource()
get_keyexpr()
undeclare()
get_id()
declare_matching_listener()
declare_matching_listener()
declare_background_matching_listener()
get_matching_status()
zenoh::Publisher::DeleteOptions
timestamp
create_default()
zenoh::Publisher::PutOptions
encoding
timestamp
source_info
attachment
create_default()
zenoh::Subscriber
undeclare()
handler()
Subscriber()
- Query-Reply
zenoh::Querier
get()
get()
get_keyexpr()
undeclare()
get_id()
declare_matching_listener()
declare_matching_listener()
declare_background_matching_listener()
get_matching_status()
zenoh::Querier::GetOptions
payload
encoding
source_info
attachment
create_default()
zenoh::Queryable
handler()
undeclare()
Queryable()
zenoh::Query
get_keyexpr()
get_parameters()
get_payload()
get_payload()
get_encoding()
get_attachment()
get_attachment()
reply()
reply_err()
reply_del()
clone()
zenoh::Query::ReplyDelOptions
zenoh::Query::ReplyErrOptions
create_default()
zenoh::Query::ReplyOptions
create_default()
zenoh::QueryConsolidation
QueryConsolidation()
QueryConsolidation()
operator==()
operator!=()
zenoh::Reply
is_ok()
get_ok()
get_err()
get_replier_id()
clone()
zenoh::ReplyError
get_payload()
get_payload()
get_encoding()
- Matching
- Channels
- Interoperability with zenoh-c / zenoh-pico
as_owned_c_ptr()
as_owned_c_ptr()
as_loaned_c_ptr()
as_loaned_c_ptr()
as_moved_c_ptr()
as_moved_c_ptr()
move_to_c_obj()
as_owned_c_ptr()
as_owned_c_ptr()
as_moved_c_ptr()
as_moved_c_ptr()
move_to_c_obj()
as_owned_c_ptr()
as_owned_c_ptr()
as_loaned_c_ptr()
as_loaned_c_ptr()
as_moved_c_ptr()
as_moved_c_ptr()
move_to_c_obj()
as_copyable_c_ptr()
as_copyable_c_ptr()
as_copyable_c_ptr()
as_copyable_c_ptr()
as_owned_c_ptr()
as_owned_c_ptr()
as_loaned_c_ptr()
as_loaned_c_ptr()
as_loaned_c_ptr()
as_loaned_c_ptr()
as_moved_c_ptr()
as_moved_c_ptr()
as_owned_cpp_ref()
as_owned_cpp_ref()
as_owned_cpp_ref()
as_copyable_cpp_ref()
as_copyable_cpp_ref()
move_to_c_obj()
into_copyable_cpp_obj()
as_owned_c_ptr()
as_owned_c_ptr()
as_moved_c_ptr()
as_moved_c_ptr()
move_to_c_obj()
as_owned_c_ptr()
as_owned_c_ptr()
as_loaned_c_ptr()
as_loaned_c_ptr()
as_moved_c_ptr()
as_moved_c_ptr()
move_to_c_obj()
as_owned_c_ptr()
as_owned_c_ptr()
as_loaned_c_ptr()
as_loaned_c_ptr()
as_moved_c_ptr()
as_moved_c_ptr()
move_to_c_obj()
- Shared Memory
zenoh::ZShm
ZShm()
ZShm()
data()
len()
try_mutate()
try_mutate()
zenoh::ZShmMut
data()
data()
len()
zenoh::CppShmClient
zenoh::ShmClient
ShmClient()
zenoh::CppShmSegment
zenoh::ShmClientStorage
global()
ShmClientStorage()
ShmClientStorage()
ShmClientStorage()
ShmClientStorage()
zenoh::PosixShmClient
PosixShmClient()
zenoh::PosixShmProvider
PosixShmProvider()
zenoh::CppShmProvider
CppShmProvider()
CppShmProvider()
zenoh::AllocLayout
AllocLayout()
zenoh::MemoryLayout
MemoryLayout()
zenoh::ChunkAllocResult
ChunkAllocResult()
ChunkAllocResult()
ProtocolId
SegmentId
ChunkId
ChunkDescriptor
AllocatedChunk
AllocError
LayoutError
AllocAlignment
BufAllocResult
BufLayoutAllocResult
cleanup_orphaned_shm_segments()
- Extensions
- Serialization / Deserialization
- Session Extension
zenoh::ext::SessionExt
SessionExt()
declare_publication_cache()
declare_background_publication_cache()
declare_querying_subscriber()
declare_background_querying_subscriber()
declare_querying_subscriber()
declare_advanced_publisher()
declare_advanced_subscriber()
declare_background_advanced_subscriber()
declare_advanced_subscriber()
zenoh::ext::SessionExt::AdvancedPublisherOptions
publisher_options
cache
sample_miss_detection
publisher_detection
publisher_detection_metadata
create_default()
zenoh::ext::SessionExt::AdvancedPublisherOptions::CacheOptions
max_samples
congestion_control
priority
is_express
create_default()
zenoh::ext::SessionExt::AdvancedPublisherOptions::SampleMissDetectionOptions
heartbeat
heartbeat_period_ms
create_default()
zenoh::ext::SessionExt::AdvancedPublisherOptions::SampleMissDetectionOptions::HeartbeatNone
zenoh::ext::SessionExt::AdvancedPublisherOptions::SampleMissDetectionOptions::HeartbeatPeriodic
zenoh::ext::SessionExt::AdvancedPublisherOptions::SampleMissDetectionOptions::HeartbeatSporadic
zenoh::ext::SessionExt::AdvancedSubscriberOptions
subscriber_options
history
recovery
query_timeout_ms
subscriber_detection
subscriber_detection_metadata
create_default()
zenoh::ext::SessionExt::AdvancedSubscriberOptions::HistoryOptions
detect_late_publishers
max_samples
max_age_ms
create_default()
zenoh::ext::SessionExt::AdvancedSubscriberOptions::RecoveryOptions
last_sample_miss_detection
create_default()
zenoh::ext::SessionExt::AdvancedSubscriberOptions::RecoveryOptions::Heartbeat
zenoh::ext::SessionExt::AdvancedSubscriberOptions::RecoveryOptions::PeriodicQueriesOptions
period_ms
create_default()
zenoh::ext::SessionExt::PublicationCacheOptions
create_default()
zenoh::ext::SessionExt::QueryingSubscriberOptions
query_keyexpr
allowed_origin
query_accept_replies
query_target
query_consolidation
query_timeout_ms
create_default()
zenoh::ext::PublicationCache
get_keyexpr()
undeclare()
zenoh::ext::QueryingSubscriber
undeclare()
handler()
QueryingSubscriber()
get()
zenoh::ext::AdvancedPublisher
get_keyexpr()
undeclare()
get_id()
put()
delete_resource()
declare_matching_listener()
declare_matching_listener()
declare_background_matching_listener()
get_matching_status()
zenoh::ext::AdvancedPublisher::DeleteOptions
delete_options
create_default()
zenoh::ext::AdvancedPublisher::PutOptions
put_options
create_default()
zenoh::ext::AdvancedSubscriber
AdvancedSubscriber()
undeclare()
handler()
declare_sample_miss_listener()
declare_background_sample_miss_listener()
detect_publishers()
detect_publishers()
detect_publishers_background()
get_keyexpr()
get_id()
zenoh::ext::Miss
source
nb
zenoh::ext::SampleMissListener
undeclare()
handler()
SampleMissListener()
- Commonly used types
- Index