iceoryx2
C++ Bindings
Loading...
Searching...
No Matches
client_details.hpp
Go to the documentation of this file.
1// Copyright (c) 2025 Contributors to the Eclipse Foundation
2//
3// See the NOTICE file(s) distributed with this work for additional
4// information regarding copyright ownership.
5//
6// This program and the accompanying materials are made available under the
7// terms of the Apache Software License 2.0 which is available at
8// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
9// which is available at https://opensource.org/licenses/MIT.
10//
11// SPDX-License-Identifier: Apache-2.0 OR MIT
12
13#ifndef IOX2_CLIENT_DETAILS_HPP
14#define IOX2_CLIENT_DETAILS_HPP
15
18#include "iox2/port_name.hpp"
21
22namespace iox2 {
25 public:
28 ~ClientDetailsView() noexcept = default;
29
30 auto operator=(const ClientDetailsView&) -> ClientDetailsView& = delete;
31 auto operator=(ClientDetailsView&& rhs) noexcept -> ClientDetailsView&;
32
34 auto client_id() const -> UniqueClientId;
35
37 auto node_id() const -> UniqueNodeId;
38
40 auto client_name() const -> PortNameView;
41
43 auto response_buffer_size() const -> uint64_t;
44
46 auto number_of_requests() const -> uint64_t;
47
49 auto max_slice_len() const -> uint64_t;
50
52 auto max_active_requests() const -> uint64_t;
53
54 private:
55 template <typename T, typename>
56 friend auto internal::list_ports_callback(void* context, T port_details_view) -> iox2_callback_progression_e;
57
58 explicit ClientDetailsView(iox2_client_details_ptr handle);
59 iox2_client_details_ptr m_handle = nullptr;
60};
61} // namespace iox2
62
63#endif
auto max_active_requests() const -> uint64_t
The maximal amount of active requests the [Client] can send.
~ClientDetailsView() noexcept=default
auto client_name() const -> PortNameView
The [PortNameView] of the [Client], empty when it was created without a name.
auto client_id() const -> UniqueClientId
The [UniqueClientId] of the [Client].
auto response_buffer_size() const -> uint64_t
The receive buffer size for incoming responses.
ClientDetailsView(ClientDetailsView &&rhs) noexcept
friend auto internal::list_ports_callback(void *context, T port_details_view) -> iox2_callback_progression_e
auto number_of_requests() const -> uint64_t
The total number of requests available in the [Client]s data segment.
auto node_id() const -> UniqueNodeId
The [NodeId] of the [Node] under which the [Client] was created.
auto max_slice_len() const -> uint64_t
The current maximum length of a slice.
ClientDetailsView(const ClientDetailsView &)=delete
Non-owning view of a [PortName].
Definition port_name.hpp:25
The system-wide unique id of a [Client].
The system-wide unique id of a [Node].